Merge pull request #1 from niklhut/feature/improve-gh-actions #3
This file contains 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: Build | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push events for all branches | |
push: | |
pull_request: | |
branches: | |
- main | |
- master | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# 1. Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Set up Git repository | |
uses: actions/checkout@v3 | |
# 2. Test build using docker-compose | |
- name: Test build | |
run: docker compose build --no-cache |