Update Repository to Node 20 #180
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: on-pull-request | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Verify all tests pass and build success | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Check for package-lock.json | |
run: | | |
if [ -e package-lock.json ]; then | |
echo "package-lock.json found; please do not use NPM! This project uses Yarn!" | |
exit 1 | |
fi | |
exit 0 | |
- name: Install dependencies (apt) | |
run: | | |
sudo apt-get install -y --no-install-recommends libxi-dev libgl1-mesa-dev | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build bundles and tabs | |
run: yarn build --tsc --lint | |
- name: Test bundles and tabs | |
run: yarn test --color | |
- name: Test and lint scripts | |
run: yarn scripts:tsc && yarn scripts:lint && yarn scripts:test --color | |
- name: Check and Lint Devserver | |
run: yarn devserver:tsc && yarn devserver:lint | |