Skip to content

Commit

Permalink
Create workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RhinosF1 authored Jan 3, 2022
1 parent 98548d5 commit 393f230
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 'Main CI Build'
on: [push, pull_request_target]

jobs:
test:
name: Test Build (Go ${{ matrix.go }} on ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ['1.16', '1.17']
os: ['ubuntu-latest', 'macos-latest']
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/[email protected]
with:
submodules: true
- name: Setup Go ${{ matrix.go }} on ${{ matrix.os }}
uses: actions/[email protected]
with:
go-version: ${{ matrix.go }}
- name: Install packages
run: |
go get -u golang.org/x/lint/golint
go get -d -t .
- name: Show go version
run: |
go version
- name: Run tests
run: |
go build .
go vet .

0 comments on commit 393f230

Please sign in to comment.