Skip to content

Commit

Permalink
composite
Browse files Browse the repository at this point in the history
  • Loading branch information
takurinton committed Sep 4, 2023
1 parent 4e15330 commit 5be822e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
17 changes: 17 additions & 0 deletions .github/actions/setup-yarn/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: setup-yarn
description: "Setup yarn"

runs:
using: composite
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: install
shell: bash
run: make -f ci.mk install
9 changes: 1 addition & 8 deletions .github/workflows/changeset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@ jobs:
changeset:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- uses: ./.github/actions/setup-yarn
- name: install
run: make -f ci.mk install
- name: check changesets
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,7 @@ jobs:
test-lint-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: install
run: make -f ci.mk install
- uses: ./.github/actions/setup-yarn
- name: lint
run: make -f ci.mk lint
- name: test
Expand Down

0 comments on commit 5be822e

Please sign in to comment.