Near gateways, gateway browser #27
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: Run build check | ||
on: | ||
pull_request: | ||
branches: [dev, master] | ||
jobs: | ||
build: | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16.x' | ||
- name: Create target directory and copy file | ||
run: | | ||
cd near | ||
mkdir target | ||
cp dist/index.js target/index.js | ||
- name: Install dependencies | ||
run: yarn | ||
working-directory: ./near | ||
- name: Build | ||
run: yarn build | ||
working-directory: ./near | ||
working-directory: ./near | ||
Check failure on line 31 in .github/workflows/build-check.yml GitHub Actions / Run build checkInvalid workflow file
|
||
- name: Check dist/index.js | ||
run: cmp dist/index.js target/index.js | ||
working-directory: ./near | ||
working-directory: ./near | ||
- name: Failure message | ||
if: failure() | ||
uses: actions/github-script@v3 | ||
with: | ||
script: | | ||
core.setFailed('The dist/index.js seems to be stale. Please run *yarn build* and commit the dist/index.js file.') | ||
working-directory: ./near |