Skip to content

Commit

Permalink
Merge pull request #766 from eisbuk/vitest-matrix/initial
Browse files Browse the repository at this point in the history
Vitest matrix/initial
  • Loading branch information
ikusteu authored Jul 9, 2023
2 parents 1103e37 + 664322c commit d035f39
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflow.templates/vitest-matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#! YAML library files must be named *.lib.yml
#@ load("setup.lib.yml", "checkout")
#@ load("cache.lib.yml", "cache_node")
#@ load("rush.lib.yml", "rush_add_path", "rush_update", "rush_build")

#! You can run this workflow bu pushing to a branch with the name
#! cypress-matrix/<anything>

name: VitestMatrix

"on":
push:
branches:
- "vitest-matrix/**"
schedule:
- cron: "30 5 * * 1,3"

jobs:
test-v18:
name: Run tests
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
dummy1: [1, 2, 3, 4, 5, 6]
dummy2: [1, 2, 3, 4, 5, 6]
steps:
- #@ checkout()
- uses: actions/setup-node@v2
with:
node-version: "18"
- #@ cache_node()
- #@ rush_add_path()
- #@ rush_update()
- #@ rush_build()
- name: Run tests
run: cd packages/client && rushx test:emulators:ci
54 changes: 54 additions & 0 deletions .github/workflows/vitest-matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: VitestMatrix
"on":
push:
branches:
- vitest-matrix/**
schedule:
- cron: 30 5 * * 1,3
jobs:
test-v18:
name: Run tests
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
dummy1:
- 1
- 2
- 3
- 4
- 5
- 6
dummy2:
- 1
- 2
- 3
- 4
- 5
- 6
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 1
- uses: actions/setup-node@v2
with:
node-version: "18"
- name: Cache node modules and firebase emulators
uses: actions/cache@v2
with:
path: |
~/.rush
~/.pnpm-store
common/temp
**/node_modules
~/.cache/firebase/emulators
key: ${{ runner.os }}-modules-emulators-node18-v1-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Add rush directory to PATH
run: echo PATH=$PWD/common/scripts/:$PATH >> $GITHUB_ENV
- name: Install and build packages
run: rush update
- name: Build packages
run: rush build
- name: Run tests
run: cd packages/client && rushx test:emulators:ci

0 comments on commit d035f39

Please sign in to comment.