Skip to content

fix(build): fix package output directory issues #204

fix(build): fix package output directory issues

fix(build): fix package output directory issues #204

Workflow file for this run

name: CI Check
on:
pull_request:
types:
- opened
- synchronize
- reopened
# Trigger after the 'Release' workflow completes
workflow_run:
workflows: ["Release"]
types:
- completed
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:
runs-on: [default]
steps:
- name: Checkout
uses: actions/checkout@v4
# https://github.com/fsfe/reuse-action
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v3
license-headers:
runs-on: [default]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Check License Header
uses: apache/skywalking-eyes/[email protected]
with:
config: .github/licenserc.yaml
mode: fix
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
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