Skip to content

Commit

Permalink
ci: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 4, 2024
1 parent ea522dc commit 499c316
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
fail-fast: false
matrix:
node-version:
- 20
- 18
- 16
services:
Expand All @@ -28,8 +29,8 @@ jobs:
--health-retries 5
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand Down Expand Up @@ -128,7 +129,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Trigger tests
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const res = await github.rest.repos.createDispatchEvent({
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ jobs:
contents: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: main
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: 'https://registry.npmjs.org'

- run: npm install
- run: npm run build
- run: tree -I 'node_modules|.git|.github|src' -L 3 -a

- run: npm install idoc@1.27.1 -g
- run: npm install idoc@1 -g
- name: Create idoc config.
working-directory: core
run: |
Expand Down

0 comments on commit 499c316

Please sign in to comment.