mirror of
https://github.com/pikami/tiktok-dl.git
synced 2025-12-29 05:39:49 +00:00
Update build script to minimize js
This commit is contained in:
21
.github/workflows/go.yml
vendored
21
.github/workflows/go.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user