Skip to content

update -v to --mount in docker scripts #18

update -v to --mount in docker scripts

update -v to --mount in docker scripts #18

Workflow file for this run

name: CI
on:
push:
jobs:
unit_test:
name: 'Unit Tests'
runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: [16.x, 18.x]
steps:
- name: Checkout repo
uses: actions/checkout@v3
# https://bun.sh/guides/runtime/cicd
- name: Install bun
uses: oven-sh/setup-bun@v1
# run any `bun` or `bunx` command
- name: Install dependencies
run: bun install
- name: unit test
run: bun run test:unit
# - name: e2e test
# run: bun run test:e2e
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'npm'
# - run: npm ci
# - run: npm run build --if-present
# - run: npm test
# Playwright Tests
# output report
# need to preview with npx playwright show-report name-of-my-extracted-playwright-report
html_report:
name: 'Playwright Tests : report to html'
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
# output to github
# use container
github_report:
name: 'Playwright Tests : report to github'
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.38.0-jammy
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run your tests
run: HOME=/root GITHUB_REPORT=1 npx playwright test