Watch gilded rose #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: Node.js CI | |
on: | |
push: | |
branches: [ "master" ] | |
paths: | |
- '.github/workflows/node.js.yml' | |
- 'kata-solutions/vending-machine/vending-machine-javascript/**' | |
- 'kata-solutions/stack-kata/stack-kata-javascript/**' | |
- 'kata-solutions/gilded-rose-kata/gilded-rose-javascript/1-golden-master/**' | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Vending machine kata with Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
working-directory: kata-solutions/vending-machine/vending-machine-javascript | |
- run: npm test | |
working-directory: kata-solutions/vending-machine/vending-machine-javascript | |
- name: Stack kata with Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
working-directory: kata-solutions/stack-kata/stack-kata-javascript | |
- run: npm test | |
working-directory: kata-solutions/stack-kata/stack-kata-javascript | |
- name: Audio player kata with Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
working-directory: kata-solutions/audio-player-kata/audio-player-javascript | |
- run: npm test | |
working-directory: kata-solutions/audio-player-kata/audio-player-javascript | |
- name: Gilded rose kata part one with Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
working-directory: kata-solutions/gilded-rose-kata/gilded-rose-javascript/1-golden-master | |
- run: npm test | |
working-directory: kata-solutions/gilded-rose-kata/gilded-rose-javascript/1-golden-master |