feat: integrate the native runner with a composite action #242
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 | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
workflow_dispatch: | |
jobs: | |
test-action: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-20.04", "ubuntu-22.04"] | |
runs-on: ${{ matrix.os }} | |
env: | |
CODSPEED_SKIP_UPLOAD: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check basic action execution | |
uses: ./ | |
with: | |
run: echo "Working!" | |
- name: Check action in a custom directory | |
uses: ./ | |
with: | |
working-directory: examples | |
# Check that the directory is actually changed | |
run: if [ $(basename $(pwd)) != "examples" ]; then exit 1; fi | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: pnpm | |
node-version-file: .nvmrc | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile --prefer-offline | |
- name: Run tests | |
run: pnpm test |