-
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
971951f
commit bed66b3
Showing
2 changed files
with
67 additions
and
32 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,67 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js latest | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "*" | ||
cache: "yarn" | ||
- name: Bootstrap | ||
run: yarn && yarn bootstrap | ||
- name: Build | ||
run: yarn build | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: lib | ||
path: | | ||
packages/*/lib/**/* | ||
utils/*/lib/** | ||
lint: | ||
name: Lint | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js latest | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "*" | ||
cache: "yarn" | ||
- name: Install | ||
run: yarn | ||
- name: Lint | ||
run: yarn lint | ||
|
||
test: | ||
name: Test on Node.js # GitHub will add ${{ matrix.node-version }} to this title | ||
needs: build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [16, 14, 12, 10, 8, 6] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} # Checkout node version for test executor | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "yarn" | ||
- name: Install | ||
run: yarn && yarn bootstrap | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: lib | ||
- name: Test | ||
run: yarn test |
This file was deleted.
Oops, something went wrong.