From 393f230424e2f832ef05aa10e11f1d619d0678db Mon Sep 17 00:00:00 2001 From: RhinosF1 Date: Mon, 3 Jan 2022 16:01:48 +0000 Subject: [PATCH] Create workflow.yml --- .github/workflows/workflow.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..e5b4c57 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -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/cancel-workflow-action@0.9.1 + with: + access_token: ${{ github.token }} + - uses: actions/checkout@v2.4.0 + with: + submodules: true + - name: Setup Go ${{ matrix.go }} on ${{ matrix.os }} + uses: actions/setup-go@v2.1.5 + 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 .