feat: coldstarter #75
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: PR Build | |
on: | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install libpcap-dev | |
run: apt install -y libpcap-dev | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "^1.21" | |
- name: Extract branch name | |
id: extract_branch | |
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//-/g')" >> $GITHUB_ENV | |
- uses: paulhatch/[email protected] | |
id: version | |
with: | |
version_format: "${major}.${minor}.${patch}-${{ env.BRANCH_NAME }}${increment}" | |
- run: make test-integration-docker | |
name: Run integration tests inside Docker | |
- run: make test | |
name: Unit tests | |
- run: make build | |
name: Build | |
- run: make build-plugins | |
name: Build Plugins | |
- name: Prerelease | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: ${{ steps.version.outputs.version }} | |
prerelease: true | |
files: | | |
bin/druid | |
bin/druid_rcon | |
bin/druid_rcon_web_rust | |
.docker/entrypoint.sh | |
.docker/druid-install-command.sh |