mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-22 19:41:20 +00:00
ci: utilize Setup Yarn Berry Action (#217)
* ci: replace `yarn-install-action` with `setup-yarn-action` * ci: replace `corepack yarn` command with `yarn` command * ci: setup Yarn to stable version
This commit is contained in:
parent
ae2cfe2220
commit
1afc1f6198
8
.github/workflows/build.yaml
vendored
8
.github/workflows/build.yaml
vendored
@ -17,10 +17,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: latest
|
node-version: latest
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Setup Yarn
|
||||||
uses: threeal/yarn-install-action@v2.0.0
|
uses: threeal/setup-yarn-action@v2.0.0
|
||||||
|
with:
|
||||||
|
version: stable
|
||||||
|
|
||||||
- name: Build Package
|
- name: Build Package
|
||||||
run: |
|
run: |
|
||||||
corepack yarn build
|
yarn build
|
||||||
git diff --exit-code HEAD
|
git diff --exit-code HEAD
|
||||||
|
10
.github/workflows/test.yaml
vendored
10
.github/workflows/test.yaml
vendored
@ -17,16 +17,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: latest
|
node-version: latest
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Setup Yarn
|
||||||
uses: threeal/yarn-install-action@v2.0.0
|
uses: threeal/setup-yarn-action@v2.0.0
|
||||||
|
with:
|
||||||
|
version: stable
|
||||||
|
|
||||||
- name: Check Format
|
- name: Check Format
|
||||||
run: |
|
run: |
|
||||||
corepack yarn format
|
yarn format
|
||||||
git diff --exit-code HEAD
|
git diff --exit-code HEAD
|
||||||
|
|
||||||
- name: Check Lint
|
- name: Check Lint
|
||||||
run: corepack yarn lint
|
run: yarn lint
|
||||||
|
|
||||||
test-action:
|
test-action:
|
||||||
name: Test Action
|
name: Test Action
|
||||||
|
Loading…
Reference in New Issue
Block a user