Skip to content

Commit

Permalink
feat(ci): Adding GitHub Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vehagn committed Jan 9, 2024
1 parent 516a764 commit fb7c73b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/ci-main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
push:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Execute Gradle compile
run: ./gradlew compileKotlin

- name: Execute Gradle test
run: ./gradlew test
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ internal class WalletControllerTest(@Autowired val mockMvc: MockMvc) {
fun purchase() {
every { mockWalletService.purchase(any(), any()) } returns UserWallet(testUserA, walletA)
mockMvc
.post(urlTemplate = "/users/123/wallet/buy?value=100") { with(csrf()) }
.post(urlTemplate = "/api/v1/users/123/wallet/buy?value=100") { with(csrf()) }
.andExpect {
status { isOk() }
}
Expand Down

0 comments on commit fb7c73b

Please sign in to comment.