diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5e1fa6b6..7ff5781e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,9 +4,31 @@ on: branches: - master jobs: + test: + name: Lint and test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: 1.16.x + - name: Install dependencies + run: | + sudo apt update -qq + sudo apt install -y -qq build-essential git sqlite libtag1-dev ffmpeg libasound-dev + - name: Lint + uses: golangci/golangci-lint-action@v2 + with: + version: latest + skip-go-installation: true + - name: Test + run: go test ./... release-please: name: Run Release Please runs-on: ubuntu-latest + needs: [test] outputs: release_created: ${{ steps.release.outputs.release_created }} tag_name: ${{ steps.release.outputs.tag_name }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 598c4714..c72685d1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,6 @@ name: Lint and test on: push: branches: - - master - develop pull_request: jobs: