EC3-1545 migrate from travis.yml to GHA #2
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
# .github/workflows/nodejs-ci.yml | |
name: Run Tests for Nuclear JS | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the code | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# Set up Node.js | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 0.10 | |
# Install grunt-cli globally | |
- name: Install grunt-cli | |
run: npm install -g grunt-cli | |
# Install dependencies | |
- name: Install dependencies | |
run: npm install | |
# Run tests | |
- name: Run tests | |
run: npm test |