Skip to content

Commit

Permalink
chore: update ci (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrschumacher authored Aug 8, 2024
1 parent 5da3dd1 commit 13e500a
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
name: Check

permissions:
contents: read

on:
pull_request:
branches:
Expand All @@ -8,14 +13,17 @@ on:

jobs:
job:
runs-on: ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Run trunk
uses: trunk-io/trunk-action@v1
- name: Run tests
run: go test -coverprofile coverage.out ./...
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22
- name: 🧹 Lint
uses: golangci/golangci-lint-action@v4
- name: 🧪 Test
run: go test -race -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 13e500a

Please sign in to comment.