Skip to content

Commit

Permalink
Update workflow for latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
javaducky committed Feb 5, 2024
1 parent e6379ef commit 2a6ce3f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Run unit tests
run: ./gradlew test --no-daemon
run: |
./gradlew test
- name: Install k6
run: |
curl https://github.com/grafana/k6/releases/download/v0.37.0/k6-v0.37.0-linux-amd64.tar.gz -L | tar xvz --strip-components 1
curl https://github.com/grafana/k6/releases/download/v0.48.0/k6-v0.48.0-linux-amd64.tar.gz -L | tar xvz --strip-components 1
- name: k6 Compliance
run: |
echo "DatabaseURI: "${GITHUB_WORKSPACE}/gorm.db"" > config.yaml
./gradlew bootRun &
sleep 3s
./k6 run -e PORT=8080 https://raw.githubusercontent.com/weesvc/workbench/main/scripts/api-compliance.js

0 comments on commit 2a6ce3f

Please sign in to comment.