frequi_origin/.github/workflows/ci.yml

64 lines
1.1 KiB
YAML
Raw Normal View History

2020-05-18 19:51:04 +00:00
name: FreqUI CI
2020-05-18 18:28:24 +00:00
on:
push:
branches:
- master
pull_request:
branches:
- master
2020-12-06 09:26:02 +00:00
release:
2020-12-06 11:53:20 +00:00
types: [ published ]
2020-05-18 18:28:24 +00:00
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
2020-12-05 18:52:32 +00:00
os: [ ubuntu-20.04 ]
2020-05-18 18:28:24 +00:00
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
- run: yarn install
2020-05-18 18:28:24 +00:00
2020-05-18 18:49:30 +00:00
- name: Run Lint
2020-12-05 18:52:32 +00:00
run: yarn lint-ci
2020-11-10 19:52:39 +00:00
- name: Run Tests
2020-12-05 18:52:32 +00:00
run: yarn test:unit
- name: Build build
run: yarn build
2020-12-05 19:04:09 +00:00
- name: Archive artifacts
2020-12-05 18:52:32 +00:00
uses: actions/upload-artifact@v2
with:
2020-12-06 09:26:02 +00:00
name: FreqUI
2020-12-05 18:52:32 +00:00
path: |
dist
2020-12-05 19:04:09 +00:00
!dist/**/*.map
2020-12-05 18:52:32 +00:00
retention-days: 10
2020-12-06 09:26:02 +00:00
deploy:
needs: [ build ]
runs-on: ubuntu-20.04
if: github.event_name == 'release'
steps:
- uses: actions/download-artifact@v2
with:
name: FreqUI
path: ./
2020-12-06 12:04:39 +00:00
- run: ls -l ./
2020-12-06 09:26:02 +00:00
- name: Upload release binaries
uses: alexellis/upload-assets@0.2.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["FreqUI.zip"]'