chore(deps): bump @actions/core from 1.10.0 to 1.10.1 #886
Workflow file for this run
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 | |
on: | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: All Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }} | |
- uses: nrwl/nx-set-shas@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Setup node and pnpm cache | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
cache: pnpm | |
- name: Setup Cypress cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/Cypress | |
key: ${{ runner.os }}-cypress-${{ hashFiles('**/pnpm-lock.yaml') }} | |
- name: Install | |
run: pnpm install | |
- name: Install Cypress binary if not cached | |
run: pnpm cypress install | |
- name: Format Code | |
run: pnpm format | |
- name: Test | |
run: pnpm nx affected --target=test | |
- name: Check for any generated code that should be committed | |
run: | | |
if [[ $(git status --porcelain) ]]; then | |
echo "Detected uncommitted changes after build. See status below:" | |
git status | |
git config user.name "${{ github.actor }}" | |
git config user.email "${{ github.actor }}@users.noreply.github.com" | |
git add . | |
git commit -m "chore: committing generated code" | |
git push | |
exit 1 | |
fi |