Skip to content

Commit 60b9756

Browse files
committed
chore(ci): clone the publiccode-parser-go repo in an empty dir
1 parent 5dcb33b commit 60b9756

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
on:
22
push:
3-
branches: [ main ]
3+
branches: [main]
44
pull_request:
5-
branches: [ main ]
5+
branches: [main]
66

77
jobs:
88
test:
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Go
1919
uses: actions/setup-go@v4
2020
with:
21-
go-version: '1.24'
21+
go-version: "1.24"
2222

2323
- name: Build shared library
2424
run: make build
@@ -30,7 +30,7 @@ jobs:
3030
run: composer install --prefer-dist --no-interaction
3131

3232
- run: |
33-
git clone --depth 1 https://github.com/italia/publiccode-parser-go.git /tmp
34-
mv /tmp/testdata/* tests/fixtures/testdata/
33+
git clone --depth 1 https://github.com/italia/publiccode-parser-go.git /tmp/publiccode-parser-go
34+
mv /tmp/publiccode-parser-go/testdata/* tests/fixtures/testdata/
3535
3636
- run: composer run test

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@
1010
.vscode
1111
*.swp
1212
*.swo
13-
/tests/fixtures/testdata

tests/fixtures/testdata/README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This directory will be populated with test files from the publiccode-parser-go repository
2+
by the CI test script.

0 commit comments

Comments
 (0)