Merge pull request #372 from hqwuzhaoyi/dependabot/npm_and_yarn/next-… #662
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: Build & Test | |
on: | |
push: | |
branches: | |
- master | |
- v[0-9]+.[0-9]+.x-staging | |
- v[0-9]+.[0-9]+.x | |
paths-ignore: | |
- README.md | |
- .github/** | |
- "!.github/workflows/build.yml" | |
- "!.github/actions/build-rust/action.yml" | |
- "!.github/actions/setup-node/action.yml" | |
- .changeset/** | |
pull_request: | |
merge_group: | |
branches: | |
- master | |
- v[0-9]+.[0-9]+.x-staging | |
- v[0-9]+.[0-9]+.x | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
env: | |
CI: true | |
jobs: | |
unit-test: | |
name: Unit Test | |
runs-on: ubuntu-latest | |
environment: development | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
strategy: | |
matrix: | |
node-version: [18] | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "pnpm" | |
- name: Install Dependencies | |
run: pnpm install && ls -a && git status | |
- name: Run Tests | |
run: pnpm ci:test |