-
Notifications
You must be signed in to change notification settings - Fork 7
62 lines (52 loc) · 2.03 KB
/
node.js.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
61
62
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
BLUE_EMAIL: ${{ secrets.BLUE_EMAIL }}
BLUE_PASSWORD: ${{ secrets.BLUE_PASSWORD }}
COGNITO_CLIENT_ID: ${{ secrets.COGNITO_CLIENT_ID }}
COGNITO_REGION: ${{ secrets.COGNITO_REGION }}
COGNITO_USER_POOL_ID: ${{ secrets.COGNITO_USER_POOL_ID }}
COGNITO_USER_EMAIL: ${{ secrets.COGNITO_USER_EMAIL }}
COGNITO_USER_EMAIL_ADMIN: ${{ secrets.COGNITO_USER_EMAIL_ADMIN }}
COGNITO_USER_PASSWORD: ${{ secrets.COGNITO_USER_PASSWORD }}
COGNITO_USER_PASSWORD_ADMIN: ${{ secrets.COGNITO_USER_PASSWORD_ADMIN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
FLIPPER_EMAIL: ${{ secrets.FLIPPER_EMAIL }}
FLIPPER_PASSWORD: ${{ secrets.FLIPPER_PASSWORD }}
MOBY_EMAIL: ${{ secrets.MOBY_EMAIL }}
MOBY_PASSWORD: ${{ secrets.MOBY_PASSWORD }}
RAY_EMAIL: ${{ secrets.RAY_EMAIL }}
RAY_PASSWORD: ${{ secrets.RAY_PASSWORD }}
jobs:
build:
runs-on: ${{ matrix.os }}
environment: production
strategy:
matrix:
node-version: [18.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Generate package.lock.json
run: npm i --package-lock
- name: Install dependencies
run: npm ci && lerna exec npm i
- name: Build
run: npm run build
- name: Tests coverage
run: npm run coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}