Merge pull request #245 from optimizely/EC3-1545-gha-migration #9
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-and-test: | |
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: 20.18.1 | |
# 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: grunt ci |