Skip to content

Merge pull request #426 from euanwm/chore/bump_posthog_version #235

Merge pull request #426 from euanwm/chore/bump_posthog_version

Merge pull request #426 from euanwm/chore/bump_posthog_version #235

Workflow file for this run

name: Build
on:
push:
branches: [ "development", "master" ]
pull_request:
branches: [ "development", "master" ]
jobs:
build_frontend:
defaults:
run:
working-directory: ./frontend/
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
node-version: "22.12.0"
cache: 'npm'
cache-dependency-path: 'frontend/package-lock.json'
- run: npm install
- run: npm run build --if-present
build_backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.2
- name: Move event_data
run: |
cp -r event_data/ backend/
- name: Linting Backend
uses: golangci/golangci-lint-action@v3
with:
version: v1.53.3
working-directory: ./backend
args: --verbose
- name: Build Backend
run: |
cd backend/
go build -v
- name: Test Backend
run: |
cd backend/
go test -coverprofile=coverage.txt ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: /backend/coverage.txt
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
build_tool:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: PyLinting
run: |
pylint $(git ls-files python_tools/'*.py') --fail-under=8