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

exortme1ster is making deploy 🚀 Let's pray he will pass tests 😉 #141

exortme1ster is making deploy 🚀 Let's pray he will pass tests 😉

exortme1ster is making deploy 🚀 Let's pray he will pass tests 😉 #141

name: Teameights checker, will punish for bad code 🥵
run-name: ${{ github.actor }} is making deploy 🚀 Let's pray he will pass tests 😉
on:
push:
branches: [dev]
pull_request:
branches: [dev]
jobs:
init:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [17.x]
steps:
- uses: actions/checkout@v3
- name: 🚧 Starting Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: 🪖 Creating .dev.env for nodemailer
working-directory: ./server
run: |
touch .dev.env
echo API_URL=${{ secrets.API_URL }} >> .dev.env
echo SMTP_HOST=${{ secrets.SMTP_HOST }} >> .dev.env
echo SMTP_USER=${{ secrets.SMTP_USER }} >> .dev.env
echo SMTP_PASS=${{ secrets.SMTP_PASS }} >> .dev.env
echo SMTP_PORT=${{ secrets.SMTP_PORT }} >> .dev.env
cat .dev.env
- name: 🎧 Install modules
working-directory: ./server
run: npm install
- name: 🚀 Run unit tests
working-directory: ./server
run: npm run test
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: 🚀 Run coverage tests
working-directory: ./server
run: npm run test:cov
- run: echo "😼 Finished! Good job."