documentation: Add README intro from Moore #2
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: "Unit tests" | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
workflow_dispatch: | |
workflow_call: | |
inputs: | |
workflow: | |
required: true | |
type: string | |
secrets: | |
CC_BUILD_TOKEN: | |
required: true | |
GH_DOTCOM_TOKEN: | |
required: true | |
env: | |
REV: ${{ github.run_id }} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.workflow }} | |
cancel-in-progress: true | |
jobs: | |
unit-tests: | |
strategy: | |
matrix: | |
runner: | |
# TODO(eric): re-enable after we get macOS runners. | |
# - "macos-latest" | |
- "self-hosted-linux-arm" | |
- "self-hosted-linux-arm64" | |
- "self-hosted-linux-amd64" | |
runs-on: ${{ matrix.runner }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Environment | |
uses: ./.github/actions/setup | |
with: | |
ghe-token: ${{ secrets.CC_BUILD_TOKEN }} | |
gh-token: ${{ secrets.GH_DOTCOM_TOKEN }} | |
runner: ${{ matrix.runner }} | |
- name: Unit Tests | |
run: cargo make unit-tests |