From eb8d31b88f5410409f7b625b92c4f74e697f4ec2 Mon Sep 17 00:00:00 2001 From: Nathan Woltman Date: Tue, 28 Mar 2023 22:40:31 -0400 Subject: [PATCH] chore: Move CI testing to GitHub Actions --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e1014ca --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: [push] + +strategy: + matrix: + node-version: [16.x, 18.x, 19.x] + +env: + MYSQL_USER: root + MYSQL_PASSWORD: root + MYSQL_DATABASE: test_db + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Start MySQL + run: sudo /etc/init.d/mysql start + - 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