Skip to content

chore(deps): pin dependencies #1282

chore(deps): pin dependencies

chore(deps): pin dependencies #1282

Workflow file for this run

name: E2E Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
persist-credentials: false
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
with:
node-version: '20'
cache: 'yarn'
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
with:
go-version: 'stable'
- name: Build backend
uses: magefile/mage-action@6f50bbb8ea47d56e62dee92392788acbc8192d0b
with:
args: buildAll
version: latest
- name: Install frontend dependencies
run: yarn install --frozen-lockfile
- name: Build frontend
run: yarn build
env:
NODE_OPTIONS: '--max_old_space_size=4096'
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
# run the default compose file for the latest version of SurrealDB
- if: matrix.surreal-version == 'latest'
name: Install and run Docker Compose
uses: hoverkraft-tech/compose-action@b63643de227a1eed273c58de31d4bc5c9d99b4da
with:
compose-file: './compose.yaml'
# run the v1 compose file for SurrealDB 1.5.4
- if: matrix.surreal-version == '1.5.4'
name: Install and run Docker Compose
uses: hoverkraft-tech/compose-action@b63643de227a1eed273c58de31d4bc5c9d99b4da
with:
compose-file: './compose-v1.yaml'
- name: Wait for Grafana to start
run: |
timeout 180 bash -c 'until curl -s -o /dev/null -w "%{http_code}" http://localhost:3000 | grep -q "200"; do sleep 1; done && echo "Grafana is up!"'
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
if: always()
with:
name: playwright-report-${{ matrix.surreal-version }}
path: playwright-report/
retention-days: 30
strategy:
matrix:
surreal-version: [
# TODO: re-enable this step when the 2.0 is supported
# 'latest',
'1.5.4',
]
timeout-minutes: 60