diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index 4a4949319..01a04f902 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -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' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 074e70e5c..7aae921cd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 \ No newline at end of file + run: npm run lint diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e43faeeaf..e8ae03eec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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' diff --git a/.github/workflows/verify-browser.yml b/.github/workflows/verify-browser.yml index f84b1fb1e..8b6b2ba22 100644 --- a/.github/workflows/verify-browser.yml +++ b/.github/workflows/verify-browser.yml @@ -1,4 +1,4 @@ -name: Verify Browser +name: Browser tests on: pull_request @@ -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 diff --git a/.github/workflows/verify-node.yml b/.github/workflows/verify-node.yml index 68feb73cd..13853e7c2 100644 --- a/.github/workflows/verify-node.yml +++ b/.github/workflows/verify-node.yml @@ -1,4 +1,4 @@ -name: Verify Node +name: Node tests on: pull_request @@ -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: @@ -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 diff --git a/.github/workflows/verify-windows.yml b/.github/workflows/verify-windows.yml deleted file mode 100644 index b8f54bc1c..000000000 --- a/.github/workflows/verify-windows.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Verify Windows - -on: pull_request - -jobs: - verify-windows: - timeout-minutes: 30 - name: Verify 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@v3 - - - name: Setup Node '18' - uses: actions/setup-node@v3 - env: - FORCE_COLOR: 0 - with: - node-version: '18' - 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