Update build script to minimize js

This commit is contained in:
Pijus Kamandulis
2020-01-20 21:12:25 +02:00
parent 4e7093250f
commit 3ac05993af
4 changed files with 72 additions and 8 deletions

View File

@@ -15,30 +15,35 @@ jobs:
go-version: 1.13
id: go
- name: Set up node 10
uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: |
go get -v -t -d ./...
npm install
npm run install-dependencies
- name: Run unit tests
run: npm run test
- name: Build
run: go build -v .
- name: Run tests
run: |
go test -v ./models
run: npm run build:dist
- name: Upload Unix Artifacts
if: startsWith(matrix.os, 'ubuntu-')
uses: actions/upload-artifact@v1
with:
name: tiktok-dl_linux
path: tiktok-dl
path: out
- name: Upload Windows Artifacts
if: startsWith(matrix.os, 'windows-')
uses: actions/upload-artifact@v1
with:
name: tiktok-dl_win64
path: tiktok-dl.exe
path: out