diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 5f29bc4..7f2ba87 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -1,43 +1,49 @@ + name: Integration on: push: - branches: [main] + branches: [ "main" ] pull_request: - branches: [main] + branches: [ "main" ] jobs: build: + runs-on: ubuntu-latest strategy: matrix: - node-version: [12.x, 14.x, 16.x] + node-version: [18.x, 20.x, 22.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm i - - run: npm run build - unit-tests: - runs-on: ubuntu-latest + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm i + - run: npm run build --if-present + - run: npm test - strategy: - matrix: - node-version: [12.x, 14.x, 16.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + unit-test: - steps: - - uses: actions/checkout@v2 + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x, 20.x, 22.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm i - run: npm run test + \ No newline at end of file