Skip to content

Commit

Permalink
update ci YAML (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
masiddee authored Dec 10, 2024
1 parent 7904904 commit 241452f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ runs:

- name: Install dependencies
shell: bash
run: yarn install
run: yarn install --prefer-offline --frozen-lockfile
25 changes: 3 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,15 @@ name: Continuous Integration

on:
pull_request:
push:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Get Yarn cache directory
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Use Yarn cache
uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
- uses: ./.github/actions/setup

- name: Install dependencies
run: yarn install --prefer-offline --frozen-lockfile
- name: Test packages
run: yarn test

0 comments on commit 241452f

Please sign in to comment.