Skip to content

ci(deps): bump actions/upload-artifact from 4 to 5 #112

ci(deps): bump actions/upload-artifact from 4 to 5

ci(deps): bump actions/upload-artifact from 4 to 5 #112

name: Integration Tests
on:
push:
branches: [ main, master, develop ]
pull_request:
branches: [ main, master ]
workflow_dispatch:
jobs:
integration-test:
runs-on: ubuntu-latest
# Allow integration tests to run on PRs from anyone, but only on the main repo
if: github.repository == 'diverger/gh-oss-helper' || github.event_name == 'pull_request'
strategy:
matrix:
node-version: [18, 20]
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run integration tests
run: npm run test:integration
- name: Run full test suite with coverage
if: matrix.node-version == 20
run: npm run test:coverage
- name: Upload coverage reports to Codecov
if: matrix.node-version == 20
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: ./coverage/lcov.info
verbose: true