GRAL-6005 replace pull_request_target with pull_request #311
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: On Commit | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| test-runtime: | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Read .nvmrc | |
| run: echo ::set-output name=NVMRC::$(cat .nvmrc) | |
| id: nvm | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '${{ steps.nvm.outputs.NVMRC }}' | |
| - uses: actions/cache@v4 | |
| with: | |
| path: '**/node_modules' | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| - run: npm install | |
| - run: npm run build | |
| - run: npm prune --production | |
| - run: node ./test/runtime.js |