Skip to content

Commit

Permalink
feat(ci): test before release please, and only run extra tests on dev…
Browse files Browse the repository at this point in the history
…elop and pull request
  • Loading branch information
sentriz committed May 12, 2021
1 parent ef6dd6c commit cd5771f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/release.yaml
Expand Up @@ -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 }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -2,7 +2,6 @@ name: Lint and test
on:
push:
branches:
- master
- develop
pull_request:
jobs:
Expand Down

0 comments on commit cd5771f

Please sign in to comment.