Skip to content

Commit 84748c4

Browse files
Added basic workflow
1 parent dbd4c46 commit 84748c4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/exercise_1.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Exercise 1
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths-ignore:
7+
- '**.md'
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
17+
fail-fast: false
18+
matrix:
19+
os: [ubuntu-latest]
20+
java-version: ["11"]
21+
22+
steps:
23+
24+
- name: Checkout current repo
25+
uses: actions/checkout@v3
26+
27+
- name: Setup JDK 11 (on "${{ matrix.os }}")
28+
uses: actions/setup-java@v3
29+
with:
30+
java-version: ${{ matrix.java-version }}
31+
distribution: 'temurin'
32+
cache: maven
33+
34+
- name: Run and build
35+
run: sh scripts/build_n_run.sh exercise1
36+
shell: bash

0 commit comments

Comments
 (0)