ci #1502
Workflow file for this run
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: ci | |
on: | |
pull_request: | |
branches: | |
- gh-pages | |
push: | |
branches: | |
- gh-pages | |
pull_request_review: | |
types: [submitted] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
if: | | |
github.event.pull_request.draft != true && | |
(github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || | |
github.event_name != 'pull_request_review' | |
strategy: | |
matrix: | |
node-version: | |
- "16" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Node.js ${{ matrix.node-version }} | |
shell: bash -l {0} | |
run: | | |
nvm install --default ${{ matrix.node-version }} | |
dirname "$(npm which)" >> "$GITHUB_PATH" | |
- name: Install Node.js dependencies | |
run: npm install | |
- name: List environment | |
id: list_env | |
shell: bash | |
run: | | |
echo "node@$(node -v)" | |
echo "npm@$(npm -v)" | |
npm -s ls | |
- name: Run tests | |
shell: bash | |
run: npm test | |
- name: Check Docker support | |
shell: bash | |
run: | | |
docker --version | |
make build |