Skip to content

Commit

Permalink
Merge pull request #42 from monzo/migrate-terrors-to-gh-actions
Browse files Browse the repository at this point in the history
Migrate repo to GitHub Actions
  • Loading branch information
suhailpatel authored Sep 28, 2022
2 parents 399ab16 + fe11cff commit 238cbfb
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 17 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run Tests
on:
- pull_request
jobs:
test:
strategy:
matrix:
go-version: [1.18.x, 1.19.x]
os: [ubuntu-latest]
defaults:
run:
working-directory: go/src/github.com/monzo/terrors
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
with:
path: 'go/src/github.com/monzo/terrors'
- name: Run Vet
run: |
go vet ./...
- name: Run Lint
run: |
go install golang.org/x/lint/golint@latest
golint .
- name: Run Tests
run: |
go test -v ./...
- name: Run Tests with Race Detector
run: |
go test -v -race ./...
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
.DS_Store
.AppleDouble
.LSOverride
.idea
.vscode
coverage.out
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

0 comments on commit 238cbfb

Please sign in to comment.