Skip to content

Commit

Permalink
Run tests before releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
majori committed Nov 12, 2023
1 parent 299a2a5 commit 0af965a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Lint

on:
workflow_call:
pull_request:
push:
tags:
- v*
branches:
- main

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ on:
- "v*"

jobs:
goreleaser:
lint:
uses: ./.github/workflows/lint.yml
test:
uses: ./.github/workflows/test.yml
release:
name: Create release
runs-on: ubuntu-latest
permissions:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ name: Test
on:
pull_request:
push:
tags:
- v*
branches:
- main
workflow_call:

jobs:
test:
Expand Down

0 comments on commit 0af965a

Please sign in to comment.