Merge pull request #243 from hypermod-io/bump-jscodeshift #646
This file contains hidden or 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: Validate | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.17.*] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install -g yarn | |
- run: yarn install --frozen-lockfile | |
- run: yarn build | |
- run: git status | |
- name: Check for changes | |
run: | | |
if [ $(git status --porcelain | wc -l) -ne 0 ]; then | |
echo "::error::Changes detected (modified or added files)" | |
exit 1 | |
fi | |
- run: yarn validate | |
env: | |
CI: true |