Merge pull request #47 from mysteriumnetwork/feature/close-ports #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: "Check code quality" | |
# Controls when the workflow will run | |
on: | |
# Push events to matching v*, i.e. v1.0, v20.15.10 | |
push: | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
unit-test: | |
name: "Unit tests" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21.x | |
- run: go run ci/mage.go -v Test | |
check: | |
name: "Quality checks" | |
runs-on: ubuntu-latest | |
env: | |
GOPATH: ${{ github.workspace }} | |
defaults: | |
run: | |
working-directory: ${{ github.workspace }}/src/github.com/${{ github.repository }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: ${{ github.workspace }}/src/github.com/${{ github.repository }} | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21.x | |
- run: go run ci/mage.go -v CheckCopyright | |
- run: go run ci/mage.go -v CheckGoImports | |
- run: go run ci/mage.go -v CheckGoLint | |
- run: go run ci/mage.go -v CheckGoVet | |
e2e-test: | |
name: "End-to-end tests" | |
needs: [ unit-test, check ] | |
runs-on: ubuntu-latest | |
env: | |
UPSTREAM_PROXY_URL: ${{ secrets.UPSTREAM_PROXY_URL }} | |
UPSTREAM_PROXY_USERNAME: ${{ secrets.UPSTREAM_PROXY_USERNAME }} | |
UPSTREAM_PROXY_PASSWORD: ${{ secrets.UPSTREAM_PROXY_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21.x | |
- run: go run ci/mage.go -v TestE2e |