mirror of
https://github.com/chirimen-oh/node-web-i2c.git
synced 2025-01-18 16:08:06 +00:00
create build task
This commit is contained in:
parent
f750aedd6e
commit
d406ab82e3
1 changed files with 25 additions and 0 deletions
25
.github/workflows/build.yml
vendored
Normal file
25
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: build
|
||||||
|
on: push
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with: { node-version: 14 }
|
||||||
|
- 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
|
||||||
|
- name: The working tree is clean.
|
||||||
|
run: "[[ -z $(git status --porcelain) ]]"
|
||||||
|
- name: Show the working tree status.
|
||||||
|
if: failure()
|
||||||
|
run: |
|
||||||
|
git status
|
||||||
|
git diff
|
Loading…
Add table
Reference in a new issue