From 22029410f0f6818a2ed2fff197eefe5bc20e2b7e Mon Sep 17 00:00:00 2001 From: Sauyon Lee Date: Mon, 28 Oct 2019 15:16:19 -0700 Subject: [PATCH] Create an action workflow for CodeQL tests --- .github/workflows/codeqltest.yml | 70 ++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/workflows/codeqltest.yml diff --git a/.github/workflows/codeqltest.yml b/.github/workflows/codeqltest.yml new file mode 100644 index 00000000000..e463867c00e --- /dev/null +++ b/.github/workflows/codeqltest.yml @@ -0,0 +1,70 @@ +name: CodeQL tests +on: [pull_request] +jobs: + + test-linux: + name: Test Linux (Ubuntu) + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.13.3 + uses: actions/setup-go@v1 + with: + go-version: 1.13.3 + id: go + + - name: Set up CodeQL CLI + uses: Anthophila/codeql-action/setup-codeql@master + + - name: Check out code + uses: actions/checkout@v2 + + - name: Build + run: make + + - name: Test + run: make test + + test-mac: + name: Test MacOS + runs-on: macOS-latest + steps: + - name: Set up Go 1.13.3 + uses: actions/setup-go@v1 + with: + go-version: 1.13.3 + id: go + + - name: Set up CodeQL CLI + uses: Anthophila/codeql-action/setup-codeql@master + + - name: Check out code + uses: actions/checkout@v2 + + - name: Build + run: make + + - name: Test + run: make test + + test-win: + name: Test Windows + runs-on: windows-latest + steps: + - name: Set up Go 1.13.3 + uses: actions/setup-go@v1 + with: + go-version: 1.13.3 + id: go + + - name: Set up CodeQL CLI + uses: Anthophila/codeql-action/setup-codeql@master + + - name: Check out code + uses: actions/checkout@v2 + + - name: Build + run: make + + - name: Test + run: make test