Skip to content

Commit

Permalink
Create build-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
a01sa01to authored Jul 28, 2022
1 parent 3b26d40 commit d6cf9f5
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build Check

on:
pull_request:
branches:
- main

jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
TZ: Asia/Tokyo
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: main
- name: Setup Node
uses: actions/[email protected]
with:
node-version: '14.16.0'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache deps
uses: actions/[email protected]
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install deps
run: yarn install --frozen-lockfile
- name: Build
run: yarn build

0 comments on commit d6cf9f5

Please sign in to comment.