test-reporter/.github/workflows/ci.yml
2023-09-18 17:25:38 -03:00

29 lines
661 B
YAML

name: 'CI'
on:
pull_request:
paths-ignore: [ '**.md' ]
push:
paths-ignore: [ '**.md' ]
branches:
- main
workflow_dispatch:
jobs:
build-test:
name: Build & Test
runs-on: ['self-hosted', 'linux', 'x64', 'tst-eks-x64-us-east-1']
steps:
- uses: actions/checkout@v2
- run: node --version
- run: npm ci
- run: npm run build
- run: npm run format-check
- run: npm run lint
- run: npm test
- name: Upload test results
if: success() || failure()
uses: actions/upload-artifact@v2
with:
name: test-results
path: __tests__/__results__/*.xml