Skip to content

Commit

Permalink
ci: Add GitHub Actions for test (#31)
Browse files Browse the repository at this point in the history
* ci: Add GitHub Actions for test
* ci: Fix padding for lint job in GitHub Actions
  • Loading branch information
sonjek authored Apr 7, 2024
1 parent 70e41dd commit c6bc8f9
Showing 1 changed file with 29 additions and 15 deletions.
44 changes: 29 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,35 @@ jobs:
needs: files-changed
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
skip-cache: true
args: --timeout=10m --verbose
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
skip-cache: true
args: --timeout=10m --verbose
test:
if: needs.files-changed.outputs.app == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- name: Test
run: make test
build:
if: needs.files-changed.outputs.app == 'true' || needs.files-changed.outputs.actions == 'true'
needs: files-changed
Expand Down

0 comments on commit c6bc8f9

Please sign in to comment.