Skip to content

Commit

Permalink
Add Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
treoden committed Mar 23, 2024
1 parent d4a64d1 commit 86f6e87
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Github build

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '18', '20']
name: Node ${{ matrix.node }}

# env:
# php-ini-values: post_max_size=256M
# wp-bp-directory: src/wp-content/plugins/buddypress
# DB_DATABASE: db_test
# DB_USER: root
# DB_PASSWORD: 'root'
# DB_HOST: localhost

steps:
# - run: |
# sudo /etc/init.d/mysql start
# mysql -e 'CREATE DATABASE db_test;' -uroot -proot
# mysql -e 'SHOW DATABASES;' -uroot -proot
- uses: actions/checkout@v2
- name: Setup node js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: npm install -g npm@9
- run: npm install
- run: npm run test

0 comments on commit 86f6e87

Please sign in to comment.