Skip to content

Commit

Permalink
GHA is deprecating Node 16 actions, let's bump them
Browse files Browse the repository at this point in the history
Special note about the Bats action, we are moving
to a new one because the actual is not maintained.

amdilabs/setup-bats@v1 ==> brokenpip3/[email protected]

Let's see how it goes...
  • Loading branch information
stronk7 committed Nov 15, 2023
1 parent aad0296 commit 8abcf23
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checking out moodle-local_ci
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: local_ci

- name: Checking out moodle
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: moodle/moodle
fetch-depth: 0 # We need a complete clone, because we use various commits / tags.
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
coverage: none

- name: Configuring node & npm
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'moodle/.nvmrc'

Expand All @@ -61,9 +61,15 @@ jobs:
npm install
- name: Setup Bats
uses: amdilabs/setup-bats@v1
uses: brokenpip3/setup-bats[email protected]
with:
bats-version: 1.9.0
bats-version: 1.10.0
# We need only support and assert libraries, and installed locally for caching to work.
# See https://github.com/brokenpip3/setup-bats-libs/issues/18
support-path: "${{ github.workspace }}/.bats/bats-support"
assert-path: "${{ github.workspace }}/.bats/bats-assert"
detik-install: false
file-install: false

- name: Run Tests
working-directory: local_ci # Tests have to start from here, because some use $PWD to detect the local_ci base.
Expand All @@ -76,6 +82,9 @@ jobs:
LOCAL_CI_TESTS_DBHOST: 127.0.0.1
LOCAL_CI_TESTS_DBUSER: root
LOCAL_CI_TESTS_DBPASS: test
# We need to specify where the libraries are, installed locally for caching to work.
# See https://github.com/brokenpip3/setup-bats-libs/issues/18
BATS_LIB_PATH: "${{ github.workspace }}/.bats"
run: |
mkdir -p ${LOCAL_CI_TESTS_CACHEDIR}
bats --timing tests/${{ matrix.test }}

0 comments on commit 8abcf23

Please sign in to comment.