Skip to content

Node.js - Automated Tests #34

Node.js - Automated Tests

Node.js - Automated Tests #34

name: Node.js - Automated Tests
on:
schedule:
- cron: '0 0 * * *'
jobs:
test:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Start Redis
uses: supercharge/[email protected]
- name: Use Node.js 22
uses: actions/setup-node@v3
with:
node-version: 22
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm test
- run: npm run pre-test
- run: npm run test:e2e
- run: ./scripts/5-clean-up.sh