Skip to content

Commit

Permalink
debug: Slurm GitHub Actions Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeckman314 committed Oct 1, 2024
1 parent 8e39bd3 commit 064a224
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 121 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/compliance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ name: Compliance Test

on:
push:
branches:
- main
# pull_request:
pull_request:

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- main
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/nextflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: Nextflow Test

on:
push:
branches:
- main
# pull_request:
pull_request:

jobs:
build:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/s3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ name: S3 Integration Test

on:
push:
branches:
- main
# pull_request:
pull_request:

jobs:
build:
Expand Down
222 changes: 110 additions & 112 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,103 +2,101 @@ name: Go Tests

on:
push:
# branches:
# - main
# pull_request:
pull_request:

jobs:
# lint:
# name: lint
# runs-on: ubuntu-latest
# steps:
# - uses: actions/setup-go@v3
# with:
# go-version: 1.21

# - uses: actions/checkout@v3
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21

- uses: actions/checkout@v3

# - name: golangci-lint
# uses: golangci/golangci-lint-action@v3
# with:
# version: latest
# # Matches the "primary" golangci-lint command in the Makefile
# args: |
# --timeout 3m --disable-all --enable=govet --enable=gofmt --enable=goimports --enable=misspell \
# --skip-dirs "vendor" \
# --skip-dirs "webdash" \
# --skip-dirs "cmd/webdash" \
# --skip-dirs "funnel-work-dir" \
# -e '.*bundle.go' -e ".*pb.go" -e ".*pb.gw.go" \
# ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
# Matches the "primary" golangci-lint command in the Makefile
args: |
--timeout 3m --disable-all --enable=govet --enable=gofmt --enable=goimports --enable=misspell \
--skip-dirs "vendor" \
--skip-dirs "webdash" \
--skip-dirs "cmd/webdash" \
--skip-dirs "funnel-work-dir" \
-e '.*bundle.go' -e ".*pb.go" -e ".*pb.gw.go" \
./...
# - name: golangci-lint
# uses: golangci/golangci-lint-action@v3
# with:
# version: latest
# # Matches the "termdash" golangci-lint command in the Makefile
# args: |
# --timeout 3m --disable-all --enable=vet --enable=gofmt --enable=goimports --enable=misspell \
# ./cmd/termdash/...

# unitTest:
# runs-on: ubuntu-latest
# steps:
# - name: Set up Go 1.x
# uses: actions/setup-go@v5
# with:
# go-version: 1.21
# - name: Check out code
# uses: actions/checkout@v2

# - name: Unit Tests
# run: make test-verbose
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
# Matches the "termdash" golangci-lint command in the Makefile
args: |
--timeout 3m --disable-all --enable=vet --enable=gofmt --enable=goimports --enable=misspell \
./cmd/termdash/...
unitTest:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Check out code
uses: actions/checkout@v2

- name: Unit Tests
run: make test-verbose

build:
uses: ./.github/workflows/build.yml

# mongoTest:
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Set up Go 1.x
# uses: actions/setup-go@v5
# with:
# go-version: 1.21

# - name: Check out code
# uses: actions/checkout@v2

# - name: Download funnel bin
# uses: actions/download-artifact@v4
# with:
# name: funnel

# - name: MongoTest
# run: |
# chmod +x funnel
# make start-mongodb
# sleep 10
# make test-mongodb

# badgerTest:
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Set up Go 1.x
# uses: actions/setup-go@v5
# with:
# go-version: 1.21
# - name: Check out code
# uses: actions/checkout@v2

# - name: Download funnel bin
# uses: actions/download-artifact@v4
# with:
# name: funnel
# - name: Badger Test
# run: |
# chmod +x funnel
# make test-badger
mongoTest:
runs-on: ubuntu-latest
needs: build
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: 1.21

- name: Check out code
uses: actions/checkout@v2

- name: Download funnel bin
uses: actions/download-artifact@v4
with:
name: funnel

- name: MongoTest
run: |
chmod +x funnel
make start-mongodb
sleep 10
make test-mongodb
badgerTest:
runs-on: ubuntu-latest
needs: build
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Check out code
uses: actions/checkout@v2

- name: Download funnel bin
uses: actions/download-artifact@v4
with:
name: funnel
- name: Badger Test
run: |
chmod +x funnel
make test-badger
slurmTest:
runs-on: ubuntu-latest
Expand All @@ -121,26 +119,26 @@ jobs:
chmod +x funnel
make test-slurm
# s3Test:
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Set up Go 1.x
# uses: actions/setup-go@v5
# with:
# go-version: 1.21
# - name: Check out code
# uses: actions/checkout@v2

# - name: Download funnel bin
# uses: actions/download-artifact@v4
# with:
# name: funnel

# - name: S3 Test
# run: |
# chmod +x funnel
# make start-generic-s3
# sleep 10
# make test-generic-s3

s3Test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Check out code
uses: actions/checkout@v2

- name: Download funnel bin
uses: actions/download-artifact@v4
with:
name: funnel

- name: S3 Test
run: |
chmod +x funnel
make start-generic-s3
sleep 10
make test-generic-s3

0 comments on commit 064a224

Please sign in to comment.