Add Tarjan's Algorithm #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
QF_IDL_SOLVER_GO_VERSION: '1.21.4' | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.QF_IDL_SOLVER_GO_VERSION }} | |
- name: Install Dependencies | |
run: | | |
go get . | |
go install github.com/BurntSushi/go-sumtype | |
- name: Go Vet | |
run: go vet ./... | |
if: ${{ always() }} | |
- name: Go Fmt | |
run: '[[ "$(gofmt -d -e . | wc -l)" -eq 0 ]]' | |
if: ${{ always() }} | |
- name: Go Sumtype | |
run: go-sumtype ./... | |
if: ${{ always() }} | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.QF_IDL_SOLVER_GO_VERSION }} | |
- name: Install Dependencies | |
run: | | |
go get . | |
go install gotest.tools/gotestsum@latest | |
- name: Test | |
run: gotestsum --junitfile ./unit-tests.xml -- -short ./... | |
- name: Summarize Tests | |
uses: test-summary/action@v2 | |
with: | |
paths: ./unit-tests.xml | |
if: ${{ always() }} | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: [lint, test] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.QF_IDL_SOLVER_GO_VERSION }} | |
- name: Install Dependencies | |
run: go get . | |
- name: Build | |
run: go build -v . | |
- name: Package Binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: qf-idl-solver | |
path: ./qf-idl-solver |