-
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.
notable change: - break: use `@dr-js/*@0.4.0-dev*` - break: change to new server|module pattern - add: feature: Weblog with Markdown - add: use `ActionJSON` to trigger generate Weblog - add: ci: use GitHub Action - todo: wait: terser/terser#851 - todo: check: webpack/webpack#11676 - script sort - package update
- Loading branch information
Showing
18 changed files
with
2,079 additions
and
1,830 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 @@ | ||
name: ci-test | ||
|
||
on: [ push ] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false # allow all test to run to the end | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
node-version: [ 12.x, 14.x ] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Reset Git config # fix win32 CI cause `something to commit` test error: https://github.com/actions/checkout/issues/135#issuecomment-602171132 | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- name: Setup Git repo | ||
uses: actions/checkout@v2 # https://github.com/actions/checkout | ||
|
||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 # https://github.com/actions/setup-node | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Log CI info | ||
run: | | ||
echo "system: $(node -p "os.platform() + ' - ' + os.release() + ' [' + os.arch() + ']'")" | ||
echo "node: $(node -v)" | ||
echo "npm: $(npm -v)" | ||
- run: npm ci | ||
|
||
- run: npm test |
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
Oops, something went wrong.