Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Jest

Jest #150

Workflow file for this run

name: Jest
on:
push:
branches: ['development']
pull_request:
branches: ['development']
schedule:
- cron: '18 11 * * 5'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20.x'
- name: Install dependencies
run: npm install
- name: Create and populate cache file
run: |
echo '{"server":{"serverName":"name","uuid":"73d18214-f52f-4498-9bfc-4503b92acdfb","location":"location","secret":"xDlWI`6ipto(6jFzjQ5<G3<0h3+?AJcYRo0KPI6V@3JgvGt%k+g3fGNmNplqKc`Z","secretPhrase":"secret secret secret secret","apiKey":"2p7FFxCZCt7feZW1llcBe7cakOj7bQKR/wIwKBjskYU="},"data":{"lastDatabaseLoaded":"","numberOfRequests":491,"numberOfResponses":212,"filerecords":{}}}' > cache.json
- name: Rename config
run: mv config.example.json config.json
- name: Run tests
run: npm test