From 586d704b3bfac3d641cff574eb2fd940c4615bb4 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Thu, 3 Sep 2020 18:39:46 +0900 Subject: [PATCH] create build action --- .github/workflows/build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..75f8bef --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,16 @@ +name: build +on: pull_request +jobs: + main: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - id: yarn_cache + run: echo "::set-output name=dir::$(yarn cache dir)" + - uses: actions/cache@v1 + with: + path: ${{ steps.yarn_cache.outputs.dir }} + key: yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: yarn- + - run: yarn + - run: yarn build