blind conversion from circleci to github #15
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
Test-Static: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
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 | |
options: --user 1001 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
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@v4 | |
with: | |
name: playwright-results | |
path: playwright-results.xml | |
- name: Store artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-results | |
path: test-results | |
if-no-files-found: ignore | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- run: node --version | |
- run: npm --version | |
- run: env | |
- run: npm ci | |
- run: npm run build | |
- run: npm run pkg | |
- name: Store build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: windows executable | |
path: dist/exec/starwards-win.exe | |
if-no-files-found: error |