Avoid re-applying configuration due to users-groups changed order #275
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 | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest] | |
otp-version: [25, 26] | |
runs-on: ${{ matrix.platform }} | |
container: | |
image: erlang:${{ matrix.otp-version }} | |
services: | |
bitbucket: | |
image: atlassian/bitbucket-server:7.17.1 | |
ports: | |
- 7990:7990 | |
env: | |
SETUP_DISPLAYNAME: Bitbucket | |
SETUP_BASEURL: http://bitbucket:7990 | |
# Get license here https://developer.atlassian.com/platform/marketplace/timebomb-licenses-for-testing-server-apps/ | |
SETUP_LICENSE: AAABrQ0ODAoPeNp9kVFvmzAQx9/9KSztLZIJZIu0RkJqA6yNViAK0G3d+uDApXgjNrKPbPn2dYG0a 6fuwS8+393v//O7vAMa8yN1PerOFrPZYn5GL+OczlzvI0m6/RZ0uisMaON7LgmURF5iwvfgVy3XW pj6nGPDjRFcOqXaE4Pc1M61KEEayI8t9I+DNI6jTbC6uP73wd/FdafLmhsIOYL/yMDcOXM98p95Y yn60wp97PvW769OpFHMRfMWagb6AHoV+svLs5x9LW4+sM+3t1ds6XpfRkw7jwcgEbSPugOSdVtTa tGiUHK4mUwmSZqzT+mGrTdpWAT5Kk1YkUW24AcaLFBFt0eKNdARlUayVBVo2mr1E0qk32vE9sdiO r1XzgvEaTN0MBg67hwaKioV0koY1GLbIdjJwlBUtOwMqr39KYfY1JZZclm+9jLEsmbEAZ4CBJvoI o9Ctvz2CP2GrRHe6irkL6l+S5JFiW8Pm7suSfU9l8LwXkwIB2hUaxPmYPAUm/Q2bP315w5MGXL95 DmEZ839jFEE3SlNedvS6rTCkOjAm25YvOON3fMAVTj4nTAtAhRH4o+fI5MQ7xSh2mtA1bPJrq0WA gIVAIGperR8m2N0fl/GfUUJfQnd+T1aX02kk | |
SETUP_SYSADMIN_USERNAME: admin | |
SETUP_SYSADMIN_PASSWORD: admin | |
SETUP_SYSADMIN_DISPLAYNAME: Admin | |
SETUP_SYSADMIN_EMAILADDRESS: admin@example.com | |
SEARCH_ENABLED: false | |
options: --health-retries 20 --health-cmd "curl -s http://localhost:7990/status | grep RUNNING" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Cache Hex packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/rebar3/hex/hexpm/packages | |
key: ${{ runner.os }}-hex-${{ hashFiles('rebar.lock') }} | |
restore-keys: | | |
${{ runner.os }}-hex- | |
- name: Cache Dialyzer PLTs | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/rebar3/rebar3_*_plt | |
_build/**/*_plt | |
key: ${{ runner.os }}-otp${{ matrix.otp-version }}-dialyzer-${{ hashFiles('rebar.config') }} | |
restore-keys: | | |
${{ runner.os }}-otp${{ matrix.otp-version }}-dialyzer- | |
- name: Compile and run dialyzer | |
run: rebar3 do compile,dialyzer,xref | |
- name: Run tests | |
env: | |
BITBUCKET_SERVER_URL: http://bitbucket:7990 | |
run: rebar3 as test eunit,ct,proper,cover,covertool generate | |
- name: Store test logs | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: logs | |
path: | | |
_build/test/logs | |
log/*.log | |
- name: Create Cover Reports | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: rebar3 cover | |
- name: Produce Documentation | |
run: rebar3 edoc | |
- name: Publish Documentation | |
uses: actions/upload-artifact@v1 | |
with: | |
name: edoc | |
path: doc |