Skip to content

test: e2e with workflow #6

test: e2e with workflow

test: e2e with workflow #6

Workflow file for this run

name: E2E tests
on:
push:
branches: ['develop']
pull_request:
branches: ['develop']
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.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@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
# Install required deps for action
- name: Install Dependencies
run: npm install
- name: Run server
run: npm run fake
# Finally, run our tests
- name: Run E2E tests
run: npm run test:e2e
# # Speed up subsequent runs with caching
# - name: Cache node modules
# uses: actions/cache@v2
# env:
# cache-name: cache-node-modules
# with:
# # npm cache files are stored in `~/.npm` on Linux/macOS
# path: ~/.npm
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-build-${{ env.cache-name }}-
# ${{ runner.os }}-build-
# ${{ runner.os }}-