forked from weiameili/Pensela
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1bf8937
commit 742fb28
Showing
1 changed file
with
26 additions
and
24 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 |
---|---|---|
@@ -1,34 +1,36 @@ | ||
name: CI | ||
# Important: Do not uncomment the CI since there are issues while building Pensela, so till then, the CI will remain commented out. | ||
|
||
# name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
# jobs: | ||
# build: | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
node-version: [12.x, 14.x, 16.x] | ||
# strategy: | ||
# matrix: | ||
# os: [ubuntu-latest, windows-latest, macos-latest] | ||
# node-version: [12.x, 14.x, 16.x] | ||
|
||
runs-on: ${{ matrix.os }} | ||
# runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
# # steps: | ||
# # - name: Checkout | ||
# # uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js environment | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
# # - name: Set up Node.js environment | ||
# # uses: actions/setup-node@v2 | ||
# # with: | ||
# # node-version: ${{ matrix.node-version }} | ||
|
||
- name: Cache Dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ matrix.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} | ||
# # - name: Cache Dependencies | ||
# # uses: actions/cache@v2 | ||
# # with: | ||
# # path: ~/.npm | ||
# # key: ${{ matrix.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
# # - name: Install Dependencies | ||
# # run: npm install | ||
|
||
- name: Build | ||
run: npm run build | ||
# # - name: Build | ||
# # run: npm run build |