Build and Test #149
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 and Test | |
run-name: Build and Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "**" | |
merge_group: | |
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-concurrency-and-the-default-behavior | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
Build-and-Test: | |
#env: | |
#TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
#TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
runs-on: | |
labels: ubuntu-latest-l | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 9.9.0 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: "pnpm" | |
- run: "pnpm install --frozen-lockfile" | |
- name: Caching for Turborepo | |
uses: rharkor/caching-for-turbo@v1.5 | |
- run: "pnpm build" | |
- run: "pnpm lint" | |
- run: "pnpm test" |