Merge pull request #12 from github/aneubeck/prepend #42
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: | |
permissions: | |
contents: read | |
packages: read | |
# In the event that there is a new push to the ref, cancel any running jobs because there are now obsolete, and wasting | |
# resources. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: rui314/setup-mold@2e332a0b602c2fc65d2d3995941b1b29a5f554a0 | |
- name: Build | |
run: make build | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: rui314/setup-mold@2e332a0b602c2fc65d2d3995941b1b29a5f554a0 | |
- name: Check formatting and clippy | |
run: make lint | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: rui314/setup-mold@2e332a0b602c2fc65d2d3995941b1b29a5f554a0 | |
- name: Run unit tests | |
run: make test |