[build] Update to noble for builders #2808
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: UI Test CI | |
on: | |
push: | |
branches: [ main, dev ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Cache Cypress binary | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/Cypress | |
key: cypress-${{ runner.os }}-cypress-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
working-directory: ./frontend | |
run: yarn install --frozen-lockfile | |
- name: Build | |
working-directory: ./frontend | |
run: yarn build | |
- name: Run tests | |
working-directory: ./frontend | |
run: yarn test | |
# cypress-run: # job name | |
# - name: Cypress test | |
# uses: cypress-io/github-action@v2 | |
# with: | |
# working-directory: ./frontend | |
# start: npx serve -s build |