-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1.01 KB
/
unit-tests.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
name: Unit Tests
on:
push:
workflow_dispatch:
jobs:
tests:
name: Unit tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Get Current Pull Request
uses: 8BitJonny/[email protected]
id: pr
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
filterOutClosed: true
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: yarn install
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Runs a single command using the runners shell
- name: Run tests
run: yarn test