Files
optolith-client/.github/workflows/tests.yml
T

60 lines
1.3 KiB
YAML

name: TS/RE Tests
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: 3.x
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install cryptography
- name: Install Node.js dependencies
run: npm ci
- run: npm run yaml:decrypt
env:
OPTOLITH_KEY: ${{ secrets.OPTOLITH_KEY }}
- run: npm run ci:copyschemes
- run: npm run re:build
- run: npm run ts:build
- run: npm test
env:
CI: true
lint:
name: Run ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install Node.js dependencies
run: npm ci
- run: npm run yaml:decrypt
env:
OPTOLITH_KEY: ${{ secrets.OPTOLITH_KEY }}
- run: npm run ci:copyschemes
- run: npm run lint
env:
CI: true