Skip to content

Commit

Permalink
refactor github action files
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Aug 1, 2024
1 parent ed130db commit 5b07522
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 45 deletions.
69 changes: 56 additions & 13 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,59 @@ name: CI
on: [push, pull_request]

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci
- run: npm run prettier-check
- run: npm run test
- run: npm run tsc
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"

- run: npm ci

- run: npm run prettier-check

- run: npm run test

- run: npm run tsc

e2e:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Start regtest
env:
COMPOSE_PROFILES: ci
run: |
git submodule init
git submodule update
chmod -R 777 regtest
cd regtest
./start.sh
- name: Install dependencies
run: npm ci

- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Run Playwright tests
env:
CI: true
run: npx playwright test

- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
32 changes: 0 additions & 32 deletions .github/workflows/playwright.yml

This file was deleted.

0 comments on commit 5b07522

Please sign in to comment.