Skip to content

Enable extra linters #65

Enable extra linters

Enable extra linters #65

Workflow file for this run

on:
push:
branches:
- '**'
- '!main'
name: CI
jobs:
quality:
name: Quality
runs-on: ubuntu-latest
container:
image: earthly/earthly:latest
timeout-minutes: 10
strategy:
matrix:
target:
[
go-build,
go-linter,
go-mod-linter,
compile-proto,
go-test
]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Exec ${{ matrix.target }}
env:
FORCE_COLOR: 1
run: earthly +${{ matrix.target }}
- name: Ensure 'earthly +compile-proto' changes are committed
if: matrix.target == 'compile-proto'
run: |
git config --global --add safe.directory /__w/ctrader/ctrader
git add .
git diff --cached --exit-code
result:
name: Result
runs-on: ubuntu-latest
needs: [quality]
steps:
- name: Success
run: 'true'