-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (31 loc) · 833 Bytes
/
node.js.yml
File metadata and controls
43 lines (31 loc) · 833 Bytes
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
name: Node.js CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [21]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Set TERM environment variable
run: echo "TERM=xterm-256color" >> $GITHUB_ENV
- name: Set FORCE_COLOR
run: echo "FORCE_COLOR=1" >> $GITHUB_ENV
- name: Set COLUMNS environment variable
run: echo "COLUMNS=$(tput cols)" >> $GITHUB_ENV
- name: Check COLUMNS value
run: echo "COLUMNS=$COLUMNS"
- name: Run tests
run: npm test