chore(deps): update dependency rollup to v4 #1380
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: Tests | |
on: [pull_request] | |
env: | |
CI: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: Run build | |
run: "npm run build" | |
- name: Archive build output | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build | |
path: dist | |
retention-days: 1 | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: Run linting | |
run: 'npm run test:lint' | |
unit: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: Run unit tests | |
run: 'npm run test:unit' | |
e2e: | |
runs-on: ubuntu-latest | |
needs: build | |
env: | |
TESTCAFE_BROWSER: 'chrome:headless' | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: Download build artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: build | |
path: dist | |
- name: Setup Chrome | |
uses: browser-actions/setup-chrome@latest | |
- name: Run e2e tests | |
run: 'npm run test:e2e' | |
- name: Archive allure reporter output | |
uses: actions/upload-artifact@v3 | |
with: | |
name: allure | |
path: allure | |
retention-days: 1 | |
integration: | |
runs-on: ubuntu-latest | |
needs: e2e | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: Download build artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: allure | |
path: allure | |
- name: Run integration tests | |
run: 'npm run test:integration' |