Skip to content

Commit

Permalink
Call it e2e instead of vrt
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenpetryk committed Mar 7, 2024
1 parent d877f22 commit 5605967
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 58 deletions.
110 changes: 55 additions & 55 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,62 +3,62 @@ name: Mafs CI
on: [push]

jobs:
# build:
# runs-on: ubuntu-latest
# timeout-minutes: 2
# steps:
# - uses: actions/checkout@v4
# - uses: pnpm/action-setup@v3
# - uses: actions/setup-node@v4
# with:
# cache: "pnpm"
# - run: pnpm install
# - run: pnpm build
build:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
cache: "pnpm"
- run: pnpm install
- run: pnpm build

# tests:
# runs-on: ubuntu-latest
# timeout-minutes: 2
# steps:
# - uses: actions/checkout@v4
# - uses: pnpm/action-setup@v3
# - uses: actions/setup-node@v4
# with:
# cache: "pnpm"
# - run: pnpm install
# - run: pnpm test:unit
tests:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
cache: "pnpm"
- run: pnpm install
- run: pnpm test:unit

# check-format:
# runs-on: ubuntu-latest
# timeout-minutes: 2
# steps:
# - uses: actions/checkout@v4
# - uses: pnpm/action-setup@v3
# - uses: actions/setup-node@v4
# with:
# cache: "pnpm"
# - run: pnpm install
# - run: pnpm format:check
check-format:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
cache: "pnpm"
- run: pnpm install
- run: pnpm format:check

# lint:
# runs-on: ubuntu-latest
# timeout-minutes: 2
# steps:
# - uses: actions/checkout@v4
# - uses: pnpm/action-setup@v3
# - uses: actions/setup-node@v4
# with:
# cache: "pnpm"
# - run: pnpm install
# - run: pnpm lint
lint:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
cache: "pnpm"
- run: pnpm install
- run: pnpm lint

# tsc:
# runs-on: ubuntu-latest
# timeout-minutes: 2
# steps:
# - uses: actions/checkout@v4
# - uses: pnpm/action-setup@v3
# - uses: actions/setup-node@v4
# with:
# cache: "pnpm"
# - run: pnpm install
# - run: pnpm tsc
tsc:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
cache: "pnpm"
- run: pnpm install
- run: pnpm tsc
8 changes: 5 additions & 3 deletions .github/workflows/vrt.yml → .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
name: Mafs Visual Tests
name: Mafs End-to-End (E2E) Tests

on:
pull_request:
types: [labeled, synchronize]

jobs:
visual-tests:
e2e-tests:
runs-on: ubuntu-latest
timeout-minutes: 5
if: contains(github.event.pull_request.labels.*.name, 'visual-changes')
if: contains(github.event.pull_request.labels.*.name, 'run-e2e-tests')
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
cache: "pnpm"
- run: pnpm install
# TODO: cache this step, it takes forever. Playwright puts the browsers in ~/.cache somewhere.
# It also doesn't feel very reproducible.
- name: Install Playwright Browsers
run: pnpm playwright install --with-deps
- run: pnpm test:e2e
Expand Down

0 comments on commit 5605967

Please sign in to comment.