Skip to content

Commit

Permalink
chore(ci): Move to GitHub Actions
Browse files Browse the repository at this point in the history
Also update the Node versions tested
  • Loading branch information
nwoltman committed Mar 30, 2023
1 parent 5ff776d commit 8763175
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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:
node-version: [16, 18, 19]
runs-on: ubuntu-latest
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
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# mysql-plus

[![NPM Version](https://img.shields.io/npm/v/mysql-plus.svg)](https://www.npmjs.com/package/mysql-plus)
[![Build Status](https://travis-ci.org/nwoltman/node-mysql-plus.svg?branch=master)](https://travis-ci.org/nwoltman/node-mysql-plus)
[![Build Status](https://img.shields.io/github/actions/workflow/status/nwoltman/node-mysql-plus/ci.yml?branch=master)](https://github.com/nwoltman/node-mysql-plus/actions/workflows/ci.yml?query=branch%3A+master)
[![Coverage Status](https://coveralls.io/repos/github/nwoltman/node-mysql-plus/badge.svg?branch=master)](https://coveralls.io/github/nwoltman/node-mysql-plus?branch=master)
[![dependencies Status](https://david-dm.org/nwoltman/node-mysql-plus/status.svg)](https://david-dm.org/nwoltman/node-mysql-plus)
[![devDependencies Status](https://david-dm.org/nwoltman/node-mysql-plus/dev-status.svg)](https://david-dm.org/nwoltman/node-mysql-plus?type=dev)
Expand Down

0 comments on commit 8763175

Please sign in to comment.