Merge pull request #32 from foomo/additional-headers #52
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: Test Branch | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
VOLTA_FEATURE_PNPM: "1" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup turbo cache | |
uses: actions/cache@v4 | |
with: | |
path: .turbo | |
key: ${{ runner.os }}-turbo-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-turbo- | |
- name: Setup pnpm cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- uses: volta-cli/action@v4 | |
- name: Run pnpm install | |
run: pnpm install | |
- name: Run lint | |
run: pnpm run lint | |
- name: Run lint | |
run: pnpm run type-check | |
- name: Run build | |
run: pnpm run build | |
- name: Run test | |
run: pnpm run test | |