Skip to content

Merge pull request #59 from adobecom/vhargrave/marquee #300

Merge pull request #59 from adobecom/vhargrave/marquee

Merge pull request #59 from adobecom/vhargrave/marquee #300

Workflow file for this run

name: Tests and Linting
on:
push:
branches: [ "main", "stage" ]
pull_request:
types: [opened, synchronize, reopened, edited]
branches: [ "main", "stage" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install XVFB
run: sudo apt-get install xvfb
- name: Install dependencies
run: npm ci
- name: Run linters
run: npm run lint
- name: Run the tests
run: xvfb-run -a npm test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: adobecom/express-milo
files: coverage/lcov.info