Skip to content

chore(ci): improve setup action #330

chore(ci): improve setup action

chore(ci): improve setup action #330

Workflow file for this run

name: test
on:
push:
branches:
- main
paths-ignore:
- '*.md'
pull_request:
branches:
- '*'
paths-ignore:
- '*.md'
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# ensure all downstream jobs have a hot cache
- uses: ./.github/actions/setup
with:
build: true
test:
runs-on: ubuntu-latest
needs: [setup]
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup
uses: ./.github/actions/setup
with:
build: true
- name: cargo test
run: cargo test
- name: cargo test (NGINX_PATH)
run: NGINX_PATH=/my/nginx cargo test
compat:
uses: ./.github/workflows/test-compat.yml
needs: [setup]