switch to typescript #4
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: Test Runner for find-remove | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build-test-lint-check: | |
name: Build, Test, Prettier, Lint and Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Node.js via nvm | |
shell: bash --login {0} | |
run: | | |
nvm install --no-progress | |
echo "$(dirname $(nvm which node))" >> $GITHUB_PATH | |
- name: Install npm dependencies | |
run: npm ci | |
- name: Build assets | |
run: npm run build | |
- name: Run tests | |
uses: coactions/setup-xvfb@v1 | |
with: | |
run: npm run test | |
- name: Run prettier | |
run: npm run prettier | |
- name: Run linter | |
run: npm run lint |