mirror of
https://github.com/threeal/cmake-action.git
synced 2026-02-01 19:40:49 +00:00
ci: use threeal/yarn-install-action in workflows (#128)
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user