Update packer.pkr.hcl #13
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: Run Tests | |
env: | |
DBHOST: ${{ secrets.DBHOST }} | |
DBUSER: ${{ secrets.DBUSER }} | |
DBPASSWORD: ${{ secrets.DBPASSWORD }} | |
DBPORT: ${{ secrets.DBPORT }} | |
DBNAME: ${{ secrets.DBNAME }} | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name : Install MySQL | |
run: | | |
sudo apt-get update | |
sudo systemctl start mysql.service | |
sudo mysql --user=${{ secrets.DBUSER }} --password=${{ secrets.DBPASSWORD }} -e "CREATE DATABASE IF NOT EXISTS ${DBNAME};" | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "14" | |
- name: Install All Dependencies | |
run: npm install | |
- name: Running Integration Test | |
run: npm test |