chore: cleanup files #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ dev, main, hotfix/*, feature/*, release/* ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: node-modules-${{ hashfiles('**/package-lock.json') }} | |
- name: Github checkout | |
uses: actions/checkout@v4 | |
- name: Setup node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.19.0' | |
- name: Install NPM dependencies | |
run: npm i typescript@5.3.3 -g && npm i | |
- name: Compile Typescript files | |
run: tsc | |
- name: Create .env file | |
run: | | |
touch .env | |
echo EMAIL_FROM = "${{ secrets.EMAIL_FROM }}" >> .env | |
echo EMAIL_REPLY_TO = "${{ secrets.EMAIL_REPLY_TO }}" >> .env | |
echo EMAIL_TO = "${{ secrets.EMAIL_TO }}" >> .env | |
echo MAILGUN_API_KEY = "${{ secrets.MAILGUN_API_KEY }}" >> .env | |
echo MAILJET_API_KEY = "${{ secrets.MAILJET_API_KEY }}" >> .env | |
echo MAILJET_TOKEN = "${{ secrets.MAILJET_TOKEN }}" >> .env | |
echo POSTMARK_API_KEY = "${{ secrets.POSTMARK_API_KEY }}" >> .env | |
echo SENDGRID_API_KEY = "${{ secrets.SENDGRID_API_KEY }}" >> .env | |
echo SENDINBLUE_API_KEY = "${{ secrets.SENDINBLUE_API_KEY }}" >> .env | |
echo SMTP_HOST = "${{ secrets.SMTP_HOST }}" >> .env | |
echo SMTP_USERNAME = "${{ secrets.SMTP_USERNAME }}" >> .env | |
echo SMTP_PASSWORD = "${{ secrets.SMTP_PASSWORD }}" >> .env | |
echo SPARKPOST_API_KEY = "${{ secrets.SPARKPOST_API_KEY }}" >> .env | |
- name: Execute units tests | |
run: npm run ci:coverage |