Skip to content

Commit

Permalink
- website - use localStorage to persist jslint-options selected in ui (
Browse files Browse the repository at this point in the history
…#391)

* - website - use localStorage to persist jslint-options selected in ui
- website - add optional debug-mode to use sessionStorage to persist jslint-globals and jslint-source from ui

* - update ci
  • Loading branch information
kaizhu256 authored Mar 28, 2022
1 parent f3c94c9 commit cfd9819
Show file tree
Hide file tree
Showing 6 changed files with 353 additions and 190 deletions.
34 changes: 26 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@ name: ci
on:
push:
branches:
# - '*/*/*'
- alpha
- beta
- master
- sandbox
workflow_dispatch:
branches:
# - '*/*/*'
- alpha
- beta
- master
- sandbox
env:
CI_MAIN_JOB: node.v16.x64.linux
GITHUB_ARTIFACT_UPLOAD_NODE_VERSION: v16
# MY_GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
jobs:


Expand All @@ -33,36 +39,48 @@ jobs:
- macos-latest
- ubuntu-latest
- windows-latest
name: job1 . node . v${{ matrix.node_version }} . ${{ matrix.architecture }} . ${{ matrix.os }}
name: |
job1
node
v${{ matrix.node_version }}
${{ matrix.architecture }}
${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
# disable autocrlf in windows
- run: git config --global core.autocrlf false
# https://github.com/actions/checkout
- uses: actions/checkout@v2
# fetch jslint_ci.sh from trusted source
- run: |
git fetch origin alpha
git checkout origin/alpha .ci.sh jslint_ci.sh
# pre-run .ci.sh
- run: sh jslint_ci.sh shCiPre
# https://github.com/actions/cache
- uses: actions/cache@v2
with:
key: ${{ matrix.architecture }}-${{ matrix.node_version }}-${{ matrix.os }}-${{ hashFiles('./package.json') }}
key: |
${{ matrix.architecture }}
${{ matrix.node_version }}
${{ matrix.os }}
${{ hashFiles('./package.json') }}
path: .github_cache
# https://github.com/actions/setup-node
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
architecture: ${{ matrix.architecture }}
# fetch jslint_ci.sh from trusted source
- run: git fetch origin alpha && git checkout origin/alpha .ci.sh jslint_ci.sh
# run nodejs coverages and tests
- run: sh jslint_ci.sh shCiBase
# shCiBase - end


# shCiArtifactUpload - start
# fetch jslint_ci.sh from trusted source
- run: git fetch origin alpha && git checkout origin/alpha .ci.sh jslint_ci.sh
- run: |
git fetch origin alpha
git checkout origin/alpha .ci.sh jslint_ci.sh
# upload build-artifacts to branch-gh-pages
- run: sh jslint_ci.sh shCiArtifactUpload
env:
CI_MAIN_JOB: v16.x64.linux
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# shCiArtifactUpload - end
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:


# npm publish - start
build:
job1:
strategy:
matrix:
architecture:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
- perf - improve performance by hoisting inlined regexps out of loops and subfunctions

# v2022.3.1-beta
- website - use localStorage to persist jslint-options selected in ui
- website - add optional debug-mode to use sessionStorage to persist jslint-globals and jslint-source from ui
- jslint - add numeric-separator support
- jslint - move regexp-literals to module-level so they are explicitly cached, to improve performance
- ci - add check for package.json.fileCount
Expand Down
Loading

0 comments on commit cfd9819

Please sign in to comment.