Skip to content

Commit

Permalink
ci(github-actions): add build step
Browse files Browse the repository at this point in the history
  • Loading branch information
chimurai committed Apr 29, 2023
1 parent f72029a commit c61e755
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,35 @@ name: CI
on: ['push', 'pull_request']

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x

- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: yarn install
if: steps.yarn-cache.outputs.cache-hit != 'true' # Over here!
run: yarn install --frozen-lockfile --ignore-scripts

- name: yarn build
run: yarn build

env:
CI: true

lint:
name: Lint
runs-on: ubuntu-latest
Expand Down

0 comments on commit c61e755

Please sign in to comment.