mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-18 18:01:20 +00:00
ci: use threeal/yarn-install-action
in workflows (#128)
This commit is contained in:
parent
423b7a9d0b
commit
b2c084d652
11
.github/workflows/build.yaml
vendored
11
.github/workflows/build.yaml
vendored
@ -17,17 +17,8 @@ jobs:
|
||||
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
|
||||
uses: threeal/yarn-install-action@v1.0.0
|
||||
|
||||
- name: Build Package
|
||||
run: yarn build && git diff --exit-code HEAD
|
||||
|
21
.github/workflows/test.yaml
vendored
21
.github/workflows/test.yaml
vendored
@ -17,21 +17,12 @@ jobs:
|
||||
with:
|
||||
node-version: latest
|
||||
|
||||
- name: Enable Yarn
|
||||
run: corepack enable yarn
|
||||
- name: Install Dependencies
|
||||
uses: threeal/yarn-install-action@v1.0.0
|
||||
|
||||
- name: Check Yarn Version
|
||||
run: yarn set version stable && git diff --exit-code HEAD
|
||||
|
||||
- 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
|
||||
|
||||
@ -50,14 +41,8 @@ jobs:
|
||||
with:
|
||||
node-version: latest
|
||||
|
||||
- name: Cache Dependencies
|
||||
uses: actions/cache@v3.3.2
|
||||
with:
|
||||
path: .yarn
|
||||
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
|
||||
|
||||
- name: Install Dependencies
|
||||
run: corepack enable && yarn install
|
||||
uses: threeal/yarn-install-action@v1.0.0
|
||||
|
||||
- name: Test Package
|
||||
run: yarn test
|
||||
|
Loading…
Reference in New Issue
Block a user