Skip to content

Commit 9f11cec

Browse files
committed
Github Actions
1 parent 217559e commit 9f11cec

File tree

5 files changed

+26
-81
lines changed

5 files changed

+26
-81
lines changed

.github/workflows/compliance-test.yaml renamed to .github/workflows/compliance.yaml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,7 @@ on:
3030

3131
jobs:
3232
build:
33-
runs-on: ubuntu-latest
34-
steps:
35-
- name: Set up Go 1.x
36-
uses: actions/setup-go@v5
37-
with:
38-
go-version: 1.21
39-
40-
- name: Check out code
41-
uses: actions/checkout@v2
42-
43-
- name: Build
44-
run: make build
45-
46-
- name: Store funnel
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: funnelBin
50-
path: funnel
33+
uses: ./.github/workflows/build.yml
5134

5235
compliance:
5336
strategy:
@@ -67,7 +50,7 @@ jobs:
6750

6851
- uses: actions/download-artifact@v3
6952
with:
70-
name: funnelBin
53+
name: funnel
7154

7255
- name: Start Funnel server
7356
run: |

.github/workflows/example.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ jobs:
2525
with:
2626
name: funnel
2727

28-
- name: Display structure of downloaded files
29-
run: |
30-
ls -R
31-
ls -al funnel
32-
3328
- name: Use Funnel binary
3429
run: |
3530
echo "Using cached Funnel binary"

.github/workflows/nextflow.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@ on:
77

88

99
jobs:
10+
build:
11+
uses: ./.github/workflows/build.yml
12+
1013
nextflow:
14+
needs: build
1115
runs-on: ubuntu-latest
1216
steps:
1317
- name: Download Funnel
1418
uses: actions/download-artifact@v2
1519
with:
16-
name: funnelBin
17-
path: funnel
20+
name: funnel
1821

1922
- name: Start Funnel
2023
run: |
21-
cd funnel/
2224
chmod +x ./funnel
2325
./funnel server --LocalStorage.AllowedDirs $HOME run &
2426

.github/workflows/s3-test.yaml renamed to .github/workflows/s3.yaml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,7 @@ on:
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Set up Go 1.x
16-
uses: actions/setup-go@v5
17-
with:
18-
go-version: 1.21
19-
20-
- name: Check out code
21-
uses: actions/checkout@v2
22-
23-
- name: Build
24-
run: make build
25-
26-
- name: Store funnel
27-
uses: actions/upload-artifact@v4
28-
with:
29-
name: funnelBin
30-
path: funnel
13+
uses: ./.github/workflows/build.yml
3114

3215
s3Test:
3316
needs: build

.github/workflows/tests.yaml

Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,23 @@ name: Go Tests
22

33
on:
44
push:
5-
branches:
6-
- main
75

86
jobs:
9-
# Temporarily disabling linting
10-
# lint:
11-
# name: lint
12-
# runs-on: ubuntu-latest
13-
# steps:
14-
# - uses: actions/setup-go@v3
15-
# with:
16-
# go-version: 1.21
17-
# - uses: actions/checkout@v3
18-
# - name: golangci-lint
19-
# uses: golangci/golangci-lint-action@v3
20-
# with:
21-
# version: latest
22-
# args: --timeout 3m --verbose
23-
24-
build:
7+
lint:
8+
name: lint
259
runs-on: ubuntu-latest
2610
steps:
27-
- name: Set up Go 1.x
28-
uses: actions/setup-go@v5
29-
with:
30-
go-version: 1.21
11+
- uses: actions/setup-go@v3
12+
with:
13+
go-version: 1.21
3114

32-
- name: Check out code
33-
uses: actions/checkout@v2
34-
35-
- name: Build
36-
run: make build
15+
- uses: actions/checkout@v3
3716

38-
- name: Store funnel
39-
uses: actions/upload-artifact@v4
40-
with:
41-
name: funnelBin
42-
path: funnel
17+
- name: golangci-lint
18+
uses: golangci/golangci-lint-action@v3
19+
with:
20+
version: latest
21+
args: --timeout 3m --verbose
4322

4423
unitTest:
4524
runs-on: ubuntu-latest
@@ -54,6 +33,9 @@ jobs:
5433
- name: Unit Tests
5534
run: make test-verbose
5635

36+
build:
37+
uses: ./.github/workflows/build.yml
38+
5739
mongoTest:
5840
runs-on: ubuntu-latest
5941
needs: build
@@ -69,7 +51,7 @@ jobs:
6951
- name: Download funnel bin
7052
uses: actions/download-artifact@v2
7153
with:
72-
name: funnelBin
54+
name: funnel
7355

7456
- name: MongoTest
7557
run: |
@@ -92,7 +74,7 @@ jobs:
9274
- name: Download funnel bin
9375
uses: actions/download-artifact@v2
9476
with:
95-
name: funnelBin
77+
name: funnel
9678
- name: Badger Test
9779
run: |
9880
chmod +x funnel
@@ -112,7 +94,7 @@ jobs:
11294
- name: Download funnel bin
11395
uses: actions/download-artifact@v2
11496
with:
115-
name: funnelBin
97+
name: funnel
11698

11799
- name: Slurm Test
118100
run: |
@@ -133,7 +115,7 @@ jobs:
133115
- name: Download funnel bin
134116
uses: actions/download-artifact@v2
135117
with:
136-
name: funnelBin
118+
name: funnel
137119

138120
- name: S3 Test
139121
run: |

0 commit comments

Comments
 (0)