Skip to content

refactor(supernova): refactor localItems, client.js, serviceApi, and processingStatus to use React Query #1662

refactor(supernova): refactor localItems, client.js, serviceApi, and processingStatus to use React Query

refactor(supernova): refactor localItems, client.js, serviceApi, and processingStatus to use React Query #1662

Workflow file for this run

name: CI Check ✅
on:
pull_request:
types:
- opened
- synchronize
- reopened
push:
branches:
- changeset-release/main
permissions:
contents: write
pull-requests: write
actions: read
checks: write
statuses: write
env:
HUSKY: 0
jobs:
install-dependencies:
runs-on: [default]
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20" # Specify the node version you need
- name: Cache npm
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
- name: Install Dependencies
run: npm ci
reuse-compliance:
uses: cloudoperators/common/.github/workflows/shared-reuse.yaml@main
license-headers:
permissions:
contents: write # Only used when `apply_header: true` else the permission is `read` see: https://github.com/cloudoperators/common/blob/8f15c13b6f4c1631c7e6f6dff5c3300452e9b5b6/.github/workflows/shared-license.yaml#L21-L22
uses: cloudoperators/common/.github/workflows/shared-license.yaml@main

Check failure on line 50 in .github/workflows/ci-checks.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-checks.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/ci-checks.yaml" -> "cloudoperators/common/.github/workflows/shared-license.yaml@main" (source branch with sha:0ad9333ba6897eecc708fef5195c68a1763d8ff5) : secret name `github_token` within `workflow_call` can not be used since it would collide with system reserved name
with:
apply_header: false
allowed-licenses:
needs: install-dependencies
runs-on: [default]
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20" # Specify the node version you need
- name: Cache npm
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
- name: Install Dependencies
run: npm ci
- name: Run Linter
run: npm run check-licenses
lint:
needs: install-dependencies
runs-on: [default]
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20" # Specify the node version you need
- name: Cache npm
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
- name: Install Dependencies
run: npm ci
- name: Run Linter
run: npm run lint
type-check:
needs: install-dependencies
runs-on: [default]
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20" # Specify the node version you need
- name: Cache npm
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
- name: Install Dependencies
run: npm ci
- name: Run Typecheck
run: npm run typecheck
format:
needs: install-dependencies
runs-on: [default]
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20" # Specify the node version you need
- name: Cache npm
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
- name: Install Dependencies
run: npm ci
- name: Run Prettier
run: npm run check-format --check "**/*.{js,jsx,ts,tsx}"
test:
needs: install-dependencies
runs-on: [default]
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20" # Specify the node version you need
- name: Cache npm
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
- name: Install Dependencies
run: npm ci && npm run build
- name: Run Tests
run: npm run test