feature: tests

This commit is contained in:
Joel Male
2022-11-10 23:06:47 +10:00
parent ee20d8c79e
commit 80541e6fb8
52 changed files with 6109 additions and 832 deletions
+1 -1
View File
@@ -6,4 +6,4 @@ updates:
directory: "/"
# Check the npm registry for updates every day (weekdays)
schedule:
interval: "daily"
interval: "weekly"
-9
View File
@@ -1,9 +0,0 @@
pull_request_rules:
- name: automatic merge for develop raised by dependabot with label dependencies
conditions:
- base=develop
- label=dependencies
- -conflict
actions:
merge:
method: merge
+40
View File
@@ -0,0 +1,40 @@
name: Tests
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
release:
types:
- created
jobs:
tests:
name: Tests
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
node-version: [14.x, 16.x]
stability: [prefer-stable]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile --${{ matrix.stability }}
- name: Execute tests
run: yarn test