Skip to content

Commit

Permalink
Massage all .github action workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSouther committed Jul 12, 2024
1 parent 57501ff commit 11cc191
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 22 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
branches: [main]
paths:
- components
- projects
- simulator
- web

Expand All @@ -13,11 +15,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js 20
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: lts/*

- name: Cache node modules
id: cache-npm
Expand All @@ -30,7 +31,21 @@ jobs:
key: ${{ hashFiles('**/package-lock.json') }}

- name: Install
run: npm install
run: npm clean-install

- name: CI
run: |
npm run CI
npx playwright install --with-deps
npx playwright test
env:
CI: true
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

- name: CD
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
branches: [main]
paths:
- components
- projects
- simulator
- extension

Expand All @@ -30,7 +32,7 @@ jobs:
key: ${{ hashFiles('**/package-lock.json') }}

- name: Install
run: npm install
run: npm clean-install

- name: CD
run: |
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Playwright Tests
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
Expand All @@ -13,9 +14,6 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci

- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
Expand All @@ -31,18 +29,17 @@ jobs:
continue-on-error: true
run: npm list

- name: Install
run: npm install
- name: Install dependencies
run: npm clean-install

- name: CI
run: npm run ci
run: |
npm run ci
npx playwright install --with-deps
npx playwright test
env:
CI: true

- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@ name: Run Workspace Tests

on:
pull_request:
branches: ["main", "pwa-main"]
branches: ["main"]

jobs:
all:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js 20
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: lts/*

- name: Cache node modules
id: cache-npm
Expand Down

0 comments on commit 11cc191

Please sign in to comment.