test(workflow) test removing previews #96
Workflow file for this run
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: CI Check | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
pull_request_target: | |
types: | |
- edited | |
branches: | |
- changeset-release/main | |
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 | |
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 | |