-
-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (43 loc) · 1.33 KB
/
nodeci_push_main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Node CI - main
on:
push:
branches:
- main
jobs:
build_and_test_and_nightly:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Get current date
id: get-date
run: |
echo "NOW=$(date +'%Y%m%dT%H%M%S')" >> $GITHUB_ENV
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm test
- name: Get Version From package.json
id: get-version
uses: beaconbrigade/[email protected]
with:
path: .
- uses: ./.github/actions/nodeci-build-windows
with:
name: vlc-rpc-v${{steps.get-version.outputs.version}}-nightly${{env.NOW}}-bundled-win-x64
- uses: ./.github/actions/nodeci-build-linux
with:
name: vlc-rpc-v${{steps.get-version.outputs.version}}-nightly${{env.NOW}}-bundled-linux-x64
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: output/test/code-coverage.html
- name: Update nightly release
uses: pyTooling/Actions/releaser@main
with:
tag: nightly
rm: true
token: ${{ secrets.GITHUB_TOKEN }}
files: .dist/zipped/*.zip