diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..73e90fb --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,37 @@ +name: test + +permissions: + contents: read + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + workflow_dispatch: + inputs: + commit_sha: + description: Git commit sha, on which, to run this workflow + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} + cancel-in-progress: true + +defaults: + run: + shell: bash + +jobs: + test: + name: Run unit tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.head.ref }} + - uses: actions/cache@v4 + continue-on-error: false + - uses: taiki-e/install-action@v2 + with: + tool: nextest,cargo-deny, cargo-msrv, cargo-machete