mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-20 10:41:21 +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:
|
||||
node-version: latest
|
||||
|
||||
- name: Install Dependencies
|
||||
uses: threeal/yarn-install-action@v2.0.0
|
||||
- name: Setup Yarn
|
||||
uses: threeal/setup-yarn-action@v2.0.0
|
||||
with:
|
||||
version: stable
|
||||
|
||||
- name: Build Package
|
||||
run: |
|
||||
corepack yarn build
|
||||
yarn build
|
||||
git diff --exit-code HEAD
|
||||
|
10
.github/workflows/test.yaml
vendored
10
.github/workflows/test.yaml
vendored
@ -17,16 +17,18 @@ jobs:
|
||||
with:
|
||||
node-version: latest
|
||||
|
||||
- name: Install Dependencies
|
||||
uses: threeal/yarn-install-action@v2.0.0
|
||||
- name: Setup Yarn
|
||||
uses: threeal/setup-yarn-action@v2.0.0
|
||||
with:
|
||||
version: stable
|
||||
|
||||
- name: Check Format
|
||||
run: |
|
||||
corepack yarn format
|
||||
yarn format
|
||||
git diff --exit-code HEAD
|
||||
|
||||
- name: Check Lint
|
||||
run: corepack yarn lint
|
||||
run: yarn lint
|
||||
|
||||
test-action:
|
||||
name: Test Action
|
||||
|
Loading…
Reference in New Issue
Block a user