Repository navigation
Update Makefile #9
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: Test | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: docker/setup-buildx-action@v4 | |
| - name: Build runtime Docker image | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| file: Dockerfile | |
| load: true | |
| tags: reo7sp/tgbot-cpp | |
| cache-from: type=gha,scope=runtime | |
| cache-to: type=gha,mode=max,scope=runtime | |
| - name: Build test Docker image | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| file: Dockerfile_test | |
| load: true | |
| tags: reo7sp/tgbot-cpp-test | |
| cache-from: type=gha,scope=test | |
| cache-to: type=gha,mode=max,scope=test | |
| - name: Run tgbot-cpp tests | |
| run: make docker-test-only | |
| - name: Run codegen tests | |
| run: make docker-test-api-codegen |