Bump rollup-plugin-serve from 2.0.2 to 3.0.0 #2267
Workflow file for this run
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: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: {} | |
jobs: | |
test-lint: | |
name: Run eslint | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repo | |
- name: Checkout | |
uses: actions/checkout@v1 | |
# Setup Node.js build environment | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.20.0 | |
# Cache dependencies | |
- name: Cache Dependencies | |
uses: actions/cache@v2 | |
id: cache | |
with: | |
path: | | |
**/node_modules | |
key: yarn-${{ hashFiles('**/package.json', 'yarn.lock') }} | |
# Install project dependencies | |
- name: Install Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: yarn | |
# Run eslint | |
- name: Run eslint | |
run: yarn lint:js | |
test-unit: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repo | |
- name: Checkout | |
uses: actions/checkout@v1 | |
# Setup Node.js build environment | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.20.0 | |
# Cache dependencies | |
- name: Cache Dependencies | |
uses: actions/cache@v2 | |
id: cache | |
with: | |
path: | | |
**/node_modules | |
key: yarn-${{ hashFiles('**/package.json', 'yarn.lock') }} | |
# Install project dependencies | |
- name: Install Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: yarn | |
# Run Jest | |
- name: Run Unit Tests | |
run: yarn test:unit:ci | |
# - name: Publish code coverage | |
# uses: paambaati/[email protected] | |
# env: | |
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
test-integration: | |
name: Run Integration Chrome Tests | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repo | |
- name: Checkout | |
uses: actions/checkout@v1 | |
# Setup Node.js build environment | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.20.0 | |
# Cache dependencies | |
- name: Cache Dependencies | |
uses: actions/cache@v2 | |
id: cache | |
with: | |
path: | | |
**/node_modules | |
key: yarn-${{ hashFiles('**/package.json', 'yarn.lock') }} | |
# Install project dependencies | |
- name: Install Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: yarn | |
- uses: bahmutov/npm-install@v1 | |
env: | |
CYPRESS_INSTALL_BINARY: 0 | |
# confirm there is no Cypress installed | |
- run: yarn cypress cache path | |
# should return empty list of installed versions | |
- run: yarn cypress cache list | |
# restore / cache the binary ourselves on Linux | |
# see https://github.com/actions/cache | |
- name: Cache Cypress | |
id: cache-cypress | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/Cypress | |
key: cypress-cache-v2-${{ runner.os }}-${{ hashFiles('**/package.json') }} | |
# now let's install Cypress binary | |
- run: yarn cypress install | |
- run: yarn cypress cache list | |
- name: Build | |
run: yarn build | |
# Run Cypress | |
- name: Run Tests | |
run: yarn test:cy:ci:chrome | |
automerge: | |
needs: [test-unit, test-integration] | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- uses: fastify/[email protected] | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} |