这是indexloc提供的服务,不要输入任何密码
Skip to content

build(pipeline): Update actions to non-deprecated versions. bump node version to 20. Run tests in non-wait mode #1406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

env:
PNPM_VERSION: 8.6.11
NODE_VERSION: 18
NODE_VERSION: 20
jobs:
skip_ci:
runs-on: ubuntu-latest
Expand All @@ -25,10 +25,10 @@ jobs:
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- uses: pnpm/action-setup@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

env:
PNPM_VERSION: 8.6.11
NODE_VERSION: 18
NODE_VERSION: 20
jobs:
skip_ci:
runs-on: ubuntu-latest
Expand All @@ -25,10 +25,10 @@ jobs:
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- uses: pnpm/action-setup@v4
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ on:

env:
PNPM_VERSION: 8.6.11
NODE_VERSION: 18
NODE_VERSION: 20

jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

Expand All @@ -40,7 +40,7 @@ jobs:
working-directory: ./packages/oidc-client

- name: Run test (oidc-client)
run: pnpm test -- --run
run: pnpm test
working-directory: ./packages/oidc-client

#react-oidc
Expand All @@ -53,5 +53,5 @@ jobs:
working-directory: ./packages/react-oidc

- name: Run test (react-oidc)
run: pnpm test -- --run
run: pnpm test
working-directory: ./packages/react-oidc
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

env:
PNPM_VERSION: 8.6.11
NODE_VERSION: 18
NODE_VERSION: 20

jobs:
run-linters:
Expand All @@ -21,10 +21,10 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

env:
PNPM_VERSION: 8.6.11
NODE_VERSION: 18
NODE_VERSION: 20
jobs:
skip_ci:
runs-on: ubuntu-latest
Expand All @@ -24,8 +24,8 @@ jobs:
runs-on: ubuntu-latest
if: needs.skip_ci.outputs.canSkip != 'true' && github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

Expand All @@ -44,7 +44,7 @@ jobs:
working-directory: ./packages/react-oidc

- name: pnpm test
run: pnpm test -- --run
run: pnpm test
working-directory: ./packages/react-oidc

- name: pnpm install
Expand All @@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
if: needs.skip_ci.outputs.canSkip != 'true' && !github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.GIT_TOKEN }}
fetch-depth: 0
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
working-directory: ./packages/oidc-client-service-worker

- name: pnpm test
run: pnpm test -- --run
run: pnpm test
working-directory: ./packages/oidc-client-service-worker

# oidc-client
Expand Down Expand Up @@ -196,7 +196,7 @@ jobs:
working-directory: ./packages/react-oidc

- name: pnpm test
run: pnpm test -- --run
run: pnpm test
working-directory: ./packages/react-oidc

# oidc-client-service-worker
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"lint": "eslint --cache .",
"lint-fix": "eslint --cache --fix .",
"outdated": "pnpm outdated -r",
"test": "pnpm run test --workspaces --if-present",
"test": "pnpm --if-present --recursive run test ",
"build": "pnpm -r --filter=./packages/* run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/oidc-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"clean": "rimraf dist",
"copy-service-worker": "cpy ./node_modules/@axa-fr/oidc-client-service-worker/dist/OidcTrustedDomains.js ./node_modules/@axa-fr/oidc-client-service-worker/dist/OidcServiceWorker.js ./dist",
"build": "tsc && vite build",
"test": "vitest --root . --coverage",
"test": "vitest run --root . --coverage",
"prepare": "pnpm run clean && pnpm run copy-service-worker && pnpm run build",
"postinstall": "echo 'WARNING keep sink OidcServiceWorker.js version file'"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-oidc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"start": "pnpm run copy-service-worker && vite",
"build": "vite build",
"serve": "vite preview",
"test": "vitest --root . --coverage",
"test": "vitest run --root . --coverage",
"clean": "rimraf dist",
"postinstall": "echo 'WARNING keep sink OidcServiceWorker.js version file'",
"prepare": "pnpm run clean && pnpm run copy-service-worker && pnpm run build",
Expand Down
Loading