Skip to content

Aggregate Updates

Aggregate Updates #203

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
build-and-test:
defaults:
run:
working-directory: client
strategy:
matrix:
target: ['web']
name: Client Tests
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
-
uses: actions/setup-node@v2
with:
node-version: '20.10.0'
-
name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
-
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
-
name: Yarn install
run: yarn install --frozen-lockfile
-
name: Lint
if: ${{ matrix.target == 'web' }}
run: yarn lint
-
name: Run tests
if: ${{ matrix.target == 'web' }}
run: yarn test --collect-coverage
-
name: Build Web
if: ${{ matrix.target == 'web' }}
run: yarn build:web
env:
SENTRY_AUTH_TOKEN: ${{ github.ref == 'refs/heads/main' && secrets.SENTRY_AUTH_TOKEN || '' }}
test-server:
name: Server Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- name: Update Package References
run: sudo apt-get update
- name: Install system dependencies
run: sudo apt-get install --no-install-recommends --yes
python3-cachecontrol
python3-dev
python3-gdal
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox
- name: Run Linting
run: tox -e lint
working-directory: server
- name: Run tests
run: tox -e testunit
working-directory: server