node-web-i2c/.github/workflows/build.yml

26 lines
696 B
YAML
Raw Normal View History

2020-06-25 11:45:10 +09:00
name: build
on: push
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2020-12-16 10:35:53 +00:00
- uses: actions/setup-node@v2
2020-06-25 11:45:10 +09:00
with: { node-version: 14 }
- id: yarn_cache
run: echo "::set-output name=dir::$(yarn cache dir)"
2020-10-20 14:10:16 +00:00
- uses: actions/cache@v2
2020-06-25 11:45:10 +09:00
with:
path: ${{ steps.yarn_cache.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: yarn-
- run: yarn
- run: yarn build
- name: The working tree is clean.
run: "[[ -z $(git status --porcelain) ]]"
- name: Show the working tree status.
if: failure()
run: |
git status
git diff