Skip to content

Commit

Permalink
Add GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mvd-ows committed Apr 15, 2024
1 parent 6562eb9 commit 5c47a48
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Continuous Integration

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- run: env
- name: Checkout code
uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '1.19.13'
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/[email protected]
- name: Print staticcheck version
run: staticcheck -version
- name: Run go build
run: make mullvad-upgrade-tunnel
- name: Run go vet
run: make vet
- name: Run go fmt
run: if [ "$(go fmt | wc -l)" -ne 0 ]; then exit 1; fi

0 comments on commit 5c47a48

Please sign in to comment.