From b8daa73133afc2d3c4e71f424f0bbfcf2363794d Mon Sep 17 00:00:00 2001 From: Max Isom Date: Wed, 18 Nov 2020 14:03:23 -0500 Subject: Add workflow --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build.yml (limited to '.github') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..326b4db --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Lint & build + +on: 'push' + +jobs: + build: + name: Lint & build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Cache dependencies + uses: actions/cache@v1 + with: + path: ./node_modules + key: ${{ runner.OS }}-dependencies-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.OS }}-dependencies-${{ env.cache-name }}- + ${{ runner.OS }}-dependencies- + ${{ runner.OS }}- + - name: Install dependencies + run: yarn install + - name: Run lint + run: yarn lint + - name: Build + run: yarn build -- cgit v1.2.3