Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bjor-joh committed Mar 15, 2024
1 parent 9147613 commit 2bef08f
Showing 1 changed file with 5 additions and 38 deletions.
43 changes: 5 additions & 38 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,45 +1,12 @@
name: CI Pipeline
name: CI workflow

on:
pull_request:
push:
branches:
- master

permissions:
contents: read
- main

jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

- name: Configure correct Go version
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: go.mod

# Check formatting early for a fast fail
- run: bash -c "diff -bu <(echo -n) <(gofmt -l ./)"

- run: go build .

- uses: dominikh/staticcheck-action@ba605356b4b29a60e87ab9404b712f3461e566dc # v1.3.0
with:
install-go: false

- run: go vet ./...

- name: Run Tests
run: |
go install gotest.tools/gotestsum@latest
gotestsum --jsonfile gotestsum-report.json -- -race ./...
- name: Annotate tests
if: always()
uses: guyarb/golang-test-annotations@a7869d394e8879bfc2e5dba4f1ea8bbb77a74f59 # v0.7.0
with:
test-results: gotestsum-report.json
cd:
uses: storytel/actions-toolkit/.github/workflows/golang-libs.yaml@SRE-329/golang-lib-support
secrets: inherit

0 comments on commit 2bef08f

Please sign in to comment.