-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #766 from eisbuk/vitest-matrix/initial
Vitest matrix/initial
- Loading branch information
Showing
2 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |