Skip to content

Commit

Permalink
Merge pull request #2601 from koddsson/update-ci
Browse files Browse the repository at this point in the history
Update CI tasks
  • Loading branch information
koddsson committed Jan 5, 2024
2 parents 037e265 + d3e54f6 commit 78abb0a
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 75 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
env:
FORCE_COLOR: 0
with:
node-version: '18'
node-version: '20'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,24 @@ env:
FORCE_COLOR: true

jobs:
verify-linux:
linux:
timeout-minutes: 30
name: Verify linux
name: Linux
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- '18'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Setup Node 20
uses: actions/setup-node@v4
env:
FORCE_COLOR: 0
with:
node-version: ${{ matrix.node-version }}
node-version: 20
cache: npm

- name: Install Dependencies
run: npm ci

- name: Lint
run: npm run lint
run: npm run lint
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
env:
FORCE_COLOR: 0
with:
node-version: '18'
node-version: '20'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/verify-browser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Verify Browser
name: Browser tests

on: pull_request

Expand All @@ -8,22 +8,18 @@ env:
jobs:
verify-linux:
timeout-minutes: 30
name: Verify linux
name: Linux
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- '18'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Setup Node 20
uses: actions/setup-node@v4
env:
FORCE_COLOR: 0
with:
node-version: ${{ matrix.node-version }}
node-version: 20
cache: npm

- name: Install Dependencies
Expand Down
50 changes: 45 additions & 5 deletions .github/workflows/verify-node.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Verify Node
name: Node tests

on: pull_request

Expand All @@ -8,19 +8,20 @@ env:
jobs:
verify-linux:
timeout-minutes: 30
name: Verify linux
name: Linux
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- '18'
- '19'
- '20'
- 'latest'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
env:
FORCE_COLOR: 0
with:
Expand Down Expand Up @@ -48,3 +49,42 @@ jobs:

- name: Test
run: npm run test:node

verify-windows:
timeout-minutes: 30
name: Windows
runs-on: windows-2022
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v4

- name: Setup Node '20'
uses: actions/setup-node@v4
env:
FORCE_COLOR: 0
with:
node-version: '20'
cache: 'npm'

- name: Install Playwright dependencies
run: npx playwright install-deps

# Set up GitHub Actions caching for Wireit.
- uses: google/wireit@setup-github-actions-caching/v1

- name: Install Dependencies
run: npm ci

- name: Build
run: npm run build

# build for production in CI to make sure tests can run with production build
- name: Build specific packages for production
run: npm run build:production

- name: Test
run: npm run test:node
43 changes: 0 additions & 43 deletions .github/workflows/verify-windows.yml

This file was deleted.

0 comments on commit 78abb0a

Please sign in to comment.