Skip to content

blind conversion from circleci to github #5

blind conversion from circleci to github

blind conversion from circleci to github #5

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
Test-Static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
cache: 'npm'
- run: node --version
- run: npm --version
- run: env
- run: npm ci
- run: npm run test:types
- run: npm run test:format
- run: npm run build
Test-E2e:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.22.2
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
cache: 'npm'
- run: node --version
- run: npm --version
- run: env
- run: npm ci
- run: npm run build:core
- run: npm run build:server
- run: npm run test:e2e
- name: Store test results
uses: actions/upload-artifact@v2
with:
name: playwright-results
path: playwright-results.xml
- name: Store artifacts
uses: actions/upload-artifact@v2
with:
name: test-results
path: test-results
# Build:
# runs-on: ubuntu-latest
# needs: [Test-Static, Test-E2e]
# if: github.ref == 'refs/heads/master'
# container:
# image: node:18.3
# steps:
# - uses: actions/checkout@v2
# - name: Set up Node.js
# uses: actions/setup-node@v2
# with:
# node-version: '18.3'
# - run: npm --version
# - run: npm ci
# - run: npm run build
# - run: npm run pkg
# - name: Store build artifacts
# uses: actions/upload-artifact@v2
# with:
# name: executables
# path: dist/exec