generated from yandeu/phaser-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (25 loc) · 780 Bytes
/
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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./client
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Node.js 20.3.1
uses: actions/setup-node@v2
with:
node-version: '20.3.1'
- name: Install Dependencies
run: npm ci
- name: Use specific typescript version
run: npm uninstall typescript && npm uninstall -g typescript && npm install [email protected] && npm install -g [email protected]
- name: Checking versions
run: npm version && tsc -v && npm list typescript
- name: Build Packages
run: npm run prod-build
- name: Run Tests
run: npm run test