fix(deps): update dependency @types/node to v22.8.6 #1640
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
name: Ensure necessary software quality gates | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
- name: Use Node.js 21 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm i --frozen-lockfile | |
- name: Build application | |
run: pnpm build | |
quality-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
- name: Use Node.js 21 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm i --frozen-lockfile | |
- name: Check with linter | |
run: pnpm lint | |
quality-prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
- name: Use Node.js 21 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm i --frozen-lockfile | |
- name: Check with prettier | |
run: pnpm prettier:check | |
test-unit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
- name: Use Node.js 21 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm i --frozen-lockfile | |
- name: Run unit tests | |
run: pnpm test:unit | |
test-e2e: | |
runs-on: ubuntu-latest | |
container: | |
image: mcr.microsoft.com/playwright:v1.48.2-jammy-amd64@sha256:ca6450233e72d43475836930f32bad51cff9258794c6f5f506264dda4276b2cf | |
env: | |
HOME: /root | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
- name: Use Node.js 21 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm i --frozen-lockfile | |
- name: Build application | |
run: pnpm build | |
- name: Run Playwright tests | |
run: pnpm test:e2e | |
env: | |
NEXTAUTH_URL: http://localhost:3000 | |
SHIBBOLETH_OIDC_ISSUER_URL: https://sso.hm.edu | |
SHIBBOLETH_OIDC_SCOPE: openid | |
NEXTAUTH_SECRET: topsecret | |
SHIBBOLETH_OIDC_CLIENT_ID: ${{ secrets.OIDC_CLIENT_ID }} | |
SHIBBOLETH_OIDC_CLIENT_SECRET: ${{ secrets.OIDC_CLIENT_SECRET }} | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-results | |
path: test-results/ | |
retention-days: 30 | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |