Skip to content

Commit

Permalink
chore: ubuntu-latest (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
dni authored Dec 13, 2024
1 parent 6da05fd commit 5fe8cf1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
validate-json:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: json-syntax-check
Expand All @@ -16,7 +16,7 @@ jobs:
pattern: "\\.json$"

check-json:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -29,7 +29,7 @@ jobs:

jmeter:
needs: [validate-json, check-json]
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:

- uses: actions/checkout@v4
Expand All @@ -50,11 +50,21 @@ jobs:
mkdir logs
mkdir reports
- name: setup java version
run: |
update-java-alternatives --list
sudo update-java-alternatives --set /usr/lib/jvm/temurin-8-jdk-amd64
java -version
- name: install jmeter
env:
JAVA_HOME: /usr/lib/jvm/temurin-8-jdk-amd64
run: |
make install-jmeter
- name: start mirror server
env:
JAVA_HOME: /usr/lib/jvm/temurin-8-jdk-amd64
run: |
make start-mirror-server
Expand All @@ -72,11 +82,12 @@ jobs:
poetry env use python3.10
poetry install
poetry run lnbits &
sleep 5
sleep 10
- name: run jmx scripts
env:
EXTENSIONS_MANIFEST_PATH: "/lnbits/lnbits-extensions/${{ github.head_ref || github.ref_name }}/extensions.json"
JAVA_HOME: /usr/lib/jvm/temurin-8-jdk-amd64
run: |
make test
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
install-jmeter:
java -version
wget --quiet https://downloads.apache.org//jmeter/binaries/apache-jmeter-5.6.3.zip
unzip -qq apache-jmeter-5.6.3.zip
./apache-jmeter-5.6.3/bin/jmeter -v
Expand Down

0 comments on commit 5fe8cf1

Please sign in to comment.