Merge pull request #1939 from abizek/fix/skip-crowdin-action-on-forks #240
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: Lint, Test & Build | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 2 | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: 9.1.3 | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
cache: "pnpm" | |
node-version: 20.13.1 | |
- name: Install Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Lint | |
run: pnpm lint | |
- name: Format | |
run: pnpm format:check | |
- name: Test | |
run: pnpm test | |
- name: Build | |
run: pnpm build | |
env: | |
NODE_ENV: production | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} |