Skip to content

Commit

Permalink
chore: Move CI testing to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nwoltman committed Mar 30, 2023
1 parent 5ff776d commit a7437b3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on: [push]

env:
MYSQL_HOST: 127.0.0.1
MYSQL_USER: root
MYSQL_PASSWORD: root
MYSQL_DATABASE: test_db

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16, 18, 19]
include:
- os: windows-latest
- node-version: 18
runs-on: ${{ matrix.os }}
steps:
- name: Start MySQL
run: |
sudo /etc/init.d/mysql start
mysql -u${{ env.MYSQL_USER }} -p${{ env.MYSQL_PASSWORD }} -e "ALTER USER '${{ env.MYSQL_USER }}'@'localhost' IDENTIFIED WITH mysql_native_password BY '${{ env.MYSQL_PASSWORD }}';"
- name: Check out code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test

0 comments on commit a7437b3

Please sign in to comment.