Improve ci #1
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: build-and-test-prs | |
'on': | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
permissions: | |
contents: read | |
jobs: | |
made-with-tpgha: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Setting up NodeJs | |
id: setup-node-js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
- name: npm ci | |
run: npm ci --ignore-scripts | |
shell: bash | |
- name: npm run lint | |
run: npm run lint | |
shell: bash | |
- name: npm run test | |
run: npm run test | |
shell: bash | |
- name: npm run build | |
run: npm run build | |
shell: bash |