mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
fa337332b9
* chore: small fixes to tests * feat: transitional move to vitests * feat: moving unit tests in progress * feat: moving more unit tests over * feat: more tests moved * feat: updated more sections of the http test * chore: wip http tests * chore: wip http tests * chore: more http tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: tests * chore: remove un-needed docs * chore: update package lock * chore: update lock
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
name: Continuous integration
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
|
|
fail-fast: false
|
|
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: true
|
|
- name: Setup node
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: npm
|
|
- name: Install dependencies Node 14
|
|
if: matrix.node-version == '14.x'
|
|
run: npm i
|
|
- name: Install dependencies
|
|
if: matrix.node-version != '14.x'
|
|
run: npm ci
|
|
- name: Build project
|
|
run: npm run build
|
|
- name: Run unit tests
|
|
run: npm run test:node
|
|
- name: Run package tests
|
|
run: npm run test:package
|
|
- name: Run browser tests
|
|
run: npm run test:browser
|
|
if: matrix.node-version == '24.x'
|
|
- name: Dependency Review
|
|
uses: actions/dependency-review-action@v4
|
|
if: matrix.node-version == '24.x'
|