Skip to content

Commit

Permalink
Update GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbraemer committed Dec 15, 2022
1 parent 0327262 commit bcc7350
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 30 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/lint.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/test.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: ci
on:
push:
pull_request:
types: [ opened, reopened ]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout 3m0s
test:
strategy:
fail-fast: false
matrix:
platform: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Go with cache
uses: actions/setup-go@v3
with:
cache: true
go-version-file: go.mod

- name: Test
run: make test

0 comments on commit bcc7350

Please sign in to comment.