mirror of
https://github.com/threeal/cmake-action.git
synced 2025-06-09 18:51:21 +00:00
ci: move check steps to check-package
job in test
workflow
This commit is contained in:
parent
3d7ddb3fa0
commit
d6da3dc47a
6
.github/workflows/build.yaml
vendored
6
.github/workflows/build.yaml
vendored
@ -29,12 +29,6 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
|
|
||||||
- name: Check Format
|
|
||||||
run: yarn format
|
|
||||||
|
|
||||||
- name: Check Lint
|
|
||||||
run: yarn lint
|
|
||||||
|
|
||||||
- name: Bundle Package
|
- name: Bundle Package
|
||||||
run: yarn bundle
|
run: yarn bundle
|
||||||
|
|
||||||
|
30
.github/workflows/test.yaml
vendored
30
.github/workflows/test.yaml
vendored
@ -5,6 +5,36 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
jobs:
|
jobs:
|
||||||
|
check-package:
|
||||||
|
name: Check Package
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4.1.1
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4.0.0
|
||||||
|
with:
|
||||||
|
node-version: latest
|
||||||
|
|
||||||
|
- name: Enable Yarn
|
||||||
|
run: corepack enable yarn
|
||||||
|
|
||||||
|
- name: Cache Dependencies
|
||||||
|
uses: actions/cache@v3.3.2
|
||||||
|
with:
|
||||||
|
path: .yarn
|
||||||
|
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: yarn install
|
||||||
|
|
||||||
|
- name: Check Format
|
||||||
|
run: yarn format && git diff --exit-code HEAD
|
||||||
|
|
||||||
|
- name: Check Lint
|
||||||
|
run: yarn lint
|
||||||
|
|
||||||
test-package:
|
test-package:
|
||||||
name: Test Package
|
name: Test Package
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user