Skip to content

Commit d3cacf0

Browse files
Split CI jobs into test-code and test-container (#395)
Signed-off-by: Mathieu Benoit <[email protected]>
1 parent a1c3917 commit d3cacf0

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ permissions:
99
contents: read
1010
pull-requests: write
1111
jobs:
12-
test:
12+
test-code:
1313
runs-on: ubuntu-latest
14-
environment: ci-pr
1514
steps:
1615
- name: checkout code in current PR branch
1716
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -37,6 +36,15 @@ jobs:
3736
run: go install github.com/google/addlicense@dc31ac9ffcca99c9457226366135701794b128c0
3837
- name: Check licenses
3938
run: addlicense -l apache -check -v -ignore '**/*.yaml' -c 'The Score Authors' ./cmd ./internal/
39+
test-container:
40+
runs-on: ubuntu-latest
41+
environment: ci-pr
42+
if: ${{ !github.event.pull_request.head.repo.fork }}
43+
steps:
44+
- name: checkout code in current PR branch
45+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
46+
with:
47+
fetch-depth: 0
4048
- name: Set up Docker
4149
uses: docker/setup-docker-action@e61617a16c407a86262fb923c35a616ddbe070b3 # v4.6.0
4250
with:
@@ -104,14 +112,3 @@ jobs:
104112
docker run --rm score-compose:pr-${{ github.event.number }} --version
105113
docker run -v .:/score-compose --rm score-compose:pr-${{ github.event.number }} init
106114
cat score.yaml
107-
108-
109-
110-
111-
112-
113-
114-
115-
116-
117-

0 commit comments

Comments
 (0)