-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Parajuli Kiran <[email protected]>
- Loading branch information
1 parent
e62067d
commit aa7301e
Showing
2 changed files
with
42 additions
and
20 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 |
---|---|---|
|
@@ -8,29 +8,49 @@ name: CI | |
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
node-version: [latest, 20.x, 18.x, 16.x] | ||
runs-on: ${{ matrix.os }} | ||
# concurrency: | ||
# group: build-${{ github.event.pull_request.number || github.ref }}-${{ matrix.os }}-${{ matrix.node-version }} | ||
# cancel-in-progress: true | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
all_but_latest: true | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: pnpm/[email protected] | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
version: 7.x.x | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Setup NodeJS | ||
uses: actions/setup-node@v3 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: latest | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
shell: bash | ||
# run: | | ||
# echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
run: | | ||
{ | ||
echo 'STORE_PATH<<EOF' | ||
pnpm store path --silent | ||
echo 'EOF' | ||
} >> $GITHUB_ENV | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
node-version: '16' | ||
cache: 'pnpm' | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
run: pnpm install | ||
|
||
- name: EsLint | ||
run: pnpm lint | ||
|
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