Skip to content

feat: update Docker workflow to increment build number and remove obs… #8

feat: update Docker workflow to increment build number and remove obs…

feat: update Docker workflow to increment build number and remove obs… #8

Workflow file for this run

name: Run Tests
on:
push:
branches: [ master, main, develop ]
pull_request:
branches: [ master, main, develop ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Create config file
run: |
if [ ! -f config/config.json ]; then
cp config/config.json.example config/config.json
fi
- name: Run tests
run: npm test
env:
NODE_ENV: test
- name: Test Summary
if: always()
run: echo "Tests completed for Node.js ${{ matrix.node-version }}"