mirror of https://github.com/rancher/api-ui.git
Merge pull request #30 from rancher/add-gh-action
Add GitHub action to check build on PR
This commit is contained in:
commit
804941be43
|
|
@ -0,0 +1,20 @@
|
||||||
|
name: check-build
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
validate:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '16.x'
|
||||||
|
- name: Validate build
|
||||||
|
run: |
|
||||||
|
yarn install
|
||||||
|
yarn run build
|
||||||
Loading…
Reference in New Issue