Dev #12
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: 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 |