Skip to content

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

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 #1673

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
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