Add skip-cache option for yarn-install action #988
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: PR Checks | |
on: | |
pull_request: | |
types: [opened, reopened, ready_for_review, synchronize] | |
branches: [master] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
readme-existence: | |
name: 'README.md file existence check' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Check README.md file existence | |
run: | | |
for f in [^node_modules]*/ ; do | |
if [[ ! -f "$f/README.md" ]] | |
then | |
echo "README.md file does not exist in path: $f/README.md" | |
exit 1 | |
break | |
fi | |
done | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.head.ref != 'changeset-release/master' }} | |
steps: | |
- name: Checkout Repo | |
uses: actions/[email protected] | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up Node.js 20 | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
- uses: ./yarn-install | |
- uses: ./unit-tests | |
trufflehog-scan: | |
name: Trufflehog Scan | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.head_ref }} | |
- name: trufflehog-actions-scan | |
uses: edplato/[email protected] |