-
Notifications
You must be signed in to change notification settings - Fork 20
60 lines (56 loc) · 1.51 KB
/
nodejs.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Node CI
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18]
steps:
- uses: actions/checkout@v1
- name: Install TeamSpeak Server via docker
run: |
docker run -d --name=teamspeak\
-p 10011:10011/tcp -p 10022:10022/tcp -p 30033:30033/tcp\
-e TS3SERVER_LICENSE=accept -e TS3SERVER_QUERY_PROTOCOLS=raw,ssh\
teamspeak ts3server serveradmin_password=abc123
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: |
npm ci
- name: Run Tests
run: |
npm test
- name: Run TSLINT
if: matrix.node-version == 18
run: |
npm run tslint
- name: Coveralls
if: matrix.node-version == 18
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
needs: tests
steps:
- uses: actions/checkout@v1
- name: install dependencies
run: |
npm ci
- name: Generate Docs
run: |
npm run generate-docs
- name: Deploy on Github Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
if: github.ref == 'refs/heads/master'
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs