-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 829 Bytes
/
checks.yml
File metadata and controls
38 lines (31 loc) · 829 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
name: Checks
on:
push:
paths:
- javascriptapp/**
pull_request:
paths:
- javascriptapp/**
# Restrict permissions to minimum required (fixes zizmor excessive-permissions)
permissions:
contents: read # Only read access to repository contents
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
working-directory: javascriptapp
run: npm install
- name: Run tests with coverage
working-directory: javascriptapp
env:
OPENWEATHER_API_KEY: ${{ secrets.OPENWEATHER_API_KEY }}
run: npm test