roc/.github/workflows/ci.yml
ayazhafiz d4d8f6d902 Turn on concurrency groups for GitHub CI
This ensures that we only one set of workflows is running for an active
GH ref (usually a PR). Stale workflows will be term'd when a new one
associated with the same PR is kicked off.

See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
2022-04-19 21:21:11 -04:00

29 lines
593 B
YAML

on: [pull_request]
name: CI
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
RUST_BACKTRACE: 1
jobs:
build-fmt-clippy-test:
name: fmt, clippy, test --release
runs-on: [self-hosted, i5-4690K]
timeout-minutes: 90
env:
FORCE_COLOR: 1
steps:
- uses: actions/checkout@v2
with:
clean: "true"
- name: Earthly version
run: earthly --version
- name: install dependencies, build, run zig tests, rustfmt, clippy, cargo test --release
run: ./ci/safe-earthly.sh +test-all