From 94095d18909a5645d2fd42f18b2714087569c85f Mon Sep 17 00:00:00 2001 From: Ivan Dyachkov Date: Sun, 19 Nov 2023 12:03:33 +0100 Subject: [PATCH] ci: replace actions as submodules with regular actions, remove tmate --- .github/actions/msvc-dev-cmd | 1 - .github/actions/setup-beam | 1 - .github/actions/tmate | 1 - .github/workflows/ci.yml | 57 ++---------------------------------- .gitmodules | 9 ------ 5 files changed, 3 insertions(+), 66 deletions(-) delete mode 160000 .github/actions/msvc-dev-cmd delete mode 160000 .github/actions/setup-beam delete mode 160000 .github/actions/tmate delete mode 100644 .gitmodules diff --git a/.github/actions/msvc-dev-cmd b/.github/actions/msvc-dev-cmd deleted file mode 160000 index 9f8ae83..0000000 --- a/.github/actions/msvc-dev-cmd +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9f8ae839b01883414208f29e3e24524387f48e1f diff --git a/.github/actions/setup-beam b/.github/actions/setup-beam deleted file mode 160000 index c255c7e..0000000 --- a/.github/actions/setup-beam +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c255c7e97f15c92985793fe937175930f5c056ca diff --git a/.github/actions/tmate b/.github/actions/tmate deleted file mode 160000 index 80a9fae..0000000 --- a/.github/actions/tmate +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 80a9fae9f2f90408784fb3cfbc192b2de04b7432 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4fc8fce..51298b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,8 +9,7 @@ permissions: contents: read jobs: - - otp_fdb_matrix: + eunit: strategy: matrix: otp-version: ['24', '25'] @@ -22,19 +21,17 @@ jobs: DEBUG: 0 # Set to 1 for even more verbose rebar3 logging DIAGNOSTIC: 0 - ImageOS: ubuntu20 steps: - name: Check out repository code uses: actions/checkout@v4 with: persist-credentials: false - submodules: recursive - name: Setup Erlang - uses: ./.github/actions/setup-beam + uses: erlef/setup-beam@v1 with: otp-version: ${{ matrix.otp-version }} rebar3-version: '3.17' - ImageOS: ubuntu20 + ImageOS: ubuntu22 - name: Install FoundationDB run: | wget https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-clients_${FDB_VERSION}-1_amd64.deb @@ -45,54 +42,6 @@ jobs: run: rebar3 compile - name: EUnit tests run: rebar3 eunit - - name: Setup tmate session on job failure - uses: ./.github/actions/tmate - if: ${{ failure() }} - with: - limit-access-to-actor: true - - os_fdb_matrix: - strategy: - matrix: - fdb-version: ['7.1.43'] - runs-on: ubuntu-latest - env: - FDB_VERSION: ${{ matrix.fdb-version }} - # This profile uses the FDB server started in the "Install FoundationDB" step - # instead of starting another one (the code that manages the "local" FDB in the - # test suite is not designed with x-platform compatibility in mind) - REBAR_PROFILE: devcontainer - # Set to 1 for verbose rebar3 logging - DEBUG: 0 - # Set to 1 for even more verbose rebar3 logging - DIAGNOSTIC: 0 - ImageOS: ubuntu20 - steps: - - name: Check out repository code - uses: actions/checkout@v4 - with: - persist-credentials: false - submodules: recursive - - name: Setup Erlang - uses: ./.github/actions/setup-beam - with: - otp-version: '25' - rebar3-version: '3.17' - - name: Install FoundationDB - run: | - wget https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-clients_${FDB_VERSION}-1_amd64.deb - wget https://github.com/apple/foundationdb/releases/download/${FDB_VERSION}/foundationdb-server_${FDB_VERSION}-1_amd64.deb - sudo dpkg -i foundationdb-clients_${FDB_VERSION}-1_amd64.deb - sudo dpkg -i foundationdb-server_${FDB_VERSION}-1_amd64.deb - - name: Compile - run: rebar3 compile - - name: EUnit tests - run: rebar3 eunit - - name: Setup tmate session on job failure - uses: ./.github/actions/tmate - if: ${{ failure() }} - with: - limit-access-to-actor: true binding_tester: runs-on: ubuntu-latest diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index d705fad..0000000 --- a/.gitmodules +++ /dev/null @@ -1,9 +0,0 @@ -[submodule ".github/actions/setup-beam"] - path = .github/actions/setup-beam - url = https://github.com/erlef/setup-beam -[submodule ".github/actions/msvc-dev-cmd"] - path = .github/actions/msvc-dev-cmd - url = https://github.com/ilammy/msvc-dev-cmd -[submodule ".github/actions/tmate"] - path = .github/actions/tmate - url = https://github.com/mxschmitt/action-tmate