caching step: expand glob paths #71
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: Nx Cloud Workflow Validations | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'yarn' | |
- name: install node_modules | |
run: yarn install --frozen-lockfile | |
- name: Validate workflows | |
run: | | |
chmod +x ./scripts/check-launch-templates.sh | |
./scripts/check-launch-templates.sh | |
- uses: nrwl/nx-set-shas@v4 | |
- run: git branch --track main origin/main | |
if: ${{ github.event_name == 'pull_request' }} | |
- name: Run checks | |
run: | | |
yarn nx affected -t test |