Skip to content

Commit

Permalink
Create ci.yml
Browse files Browse the repository at this point in the history
lint and test workflows to run on creating/updating PRs
  • Loading branch information
rjalander authored Mar 20, 2024
1 parent 27aa80b commit ce210a4
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
pull_request:
types:
- "opened"
- "synchronize"
paths-ignore:
- "README.md"
- ".gitignore"

jobs:
lint:
runs-on: ubuntu-latest
env:
GOPATH: /home/runner/go
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.54

test:
runs-on: ubuntu-latest
env:
GOPATH: /home/runner/go
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Test
run: go test -v ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3

0 comments on commit ce210a4

Please sign in to comment.