diff .. #42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| flutter: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: '3.19.0' | |
| - name: Install dependencies | |
| run: flutter pub get | |
| - name: Analyze code | |
| run: flutter analyze | |
| - name: Run tests | |
| run: flutter test | |
| go: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.21' | |
| - name: Install dependencies | |
| run: cd go && go mod download | |
| - name: Build | |
| run: cd go && go build ./... | |
| - name: Run tests | |
| run: cd go && go test ./... | |
| - name: Vet | |
| run: cd go && go vet ./... | |
| cpp: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake libssl-dev libboost-all-dev | |
| - name: Build | |
| run: | | |
| cd cpp | |
| mkdir build && cd build | |
| cmake .. | |
| make -j$(nproc) | |
| docker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build Docker images | |
| run: | | |
| docker build -t katya-mesh-go:test -f go/Dockerfile ./go | |
| docker build -t katya-mesh-flutter:test -f Dockerfile . | |
| if: github.event_name == 'push' |