[ CURRICULUM ] Added CSS Selector Exercise #20
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: "Tests: for WeekXX DayXX" | |
name: "Tests: for Week01 Day05" | |
on: | |
push: | |
# Run tests only when the following folders/files have changed during the push: | |
branches: | |
- 'main' | |
paths: | |
- user/week01/exercises/day05/** | |
jobs: | |
test1: | |
# Trigger word 'javascript-largest-number' | |
if: contains(github.event.head_commit.message, 'javascript-largest-number') | |
# CHANGE [[TRIGGER-COMMIT-KEYWORD]] | |
# if: contains(github.event.head_commit.message, '[[TRIGGER-COMMIT-KEYWORD]]') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install dependencies | |
run: npm ci | |
- name: Run Largest Number Test | |
run: node curriculum/week01/exercises/javascript-first-steps/tests/largest-number.test.js | |
# CHANGE PATH: | |
# run: node curriculum/weekXX/exercises/[[EXERCISE-SLUG]]/tests/[[EXERCISE]].test.js | |
test2: | |
# Trigger word 'javascript-landscape-mode' | |
if: contains(github.event.head_commit.message, 'javascript-landscape-mode') | |
# CHANGE [[TRIGGER-COMMIT-KEYWORD]] | |
# if: contains(github.event.head_commit.message, '[[TRIGGER-COMMIT-KEYWORD]]') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install dependencies | |
run: npm ci | |
- name: Run Landscape Mode Test | |
run: node curriculum/week01/exercises/javascript-first-steps/tests/landscape-mode.test.js | |
test3: | |
# Trigger word 'javascript-simple-quiz' | |
if: contains(github.event.head_commit.message, 'javascript-simple-quiz') | |
# CHANGE [[TRIGGER-COMMIT-KEYWORD]] | |
# if: contains(github.event.head_commit.message, '[[TRIGGER-COMMIT-KEYWORD]]') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install dependencies | |
run: npm ci | |
- name: Run Simple Quiz Test | |
run: node curriculum/week01/exercises/javascript-first-steps/tests/simple-quiz.test.js | |
test4: | |
# Trigger word 'javascript-rock-paper-scissors' | |
if: contains(github.event.head_commit.message, 'javascript-rock-paper-scissors') | |
# CHANGE [[TRIGGER-COMMIT-KEYWORD]] | |
# if: contains(github.event.head_commit.message, '[[TRIGGER-COMMIT-KEYWORD]]') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install dependencies | |
run: npm ci | |
- name: Run Rock Paper Scissors Test | |
run: node curriculum/week01/exercises/javascript-first-steps/tests/rock-paper-scissors.test.js |