Skip to content

Commit

Permalink
Update GH Actions
Browse files Browse the repository at this point in the history
* Ensure line endings for Windows are properly formatted
* Add golangci-lint via GH Actions
* Add race test via GH actions
  • Loading branch information
drpaneas committed Apr 19, 2021
1 parent 9d8f8d7 commit ef5873f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.go text eol=lf
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,9 @@ jobs:
- name: make test
run: |
make test
- name: headless test
uses: GabrielBB/xvfb-action@v1
with:
# this is running only on Ubuntu: /usr/bin/xvfb-run --auto-servernum go test -v -race ./...
run: go test -v -race ./...
21 changes: 21 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: 'latest'
go-version: 1.16

0 comments on commit ef5873f

Please sign in to comment.