Skip to content

Commit

Permalink
Reorganize workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rkettelerij committed Jan 6, 2024
1 parent a63c9d2 commit a0b1a15
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 63 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
name: test-examples
name: e2e-test
on:
pull_request:
jobs:
test-examples:
end-to-end-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: test OGC API Features with Azure GeoPackage
- name: Test OGC API Features with Azure GeoPackage
run: docker-compose -f ./examples/docker-compose-features-azure.yaml up --exit-code-from smoketest
5 changes: 4 additions & 1 deletion .github/workflows/lint-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
permissions:
contents: read
jobs:
golangci:
lint:
name: lint
runs-on: ubuntu-latest
steps:
Expand All @@ -22,6 +22,9 @@ jobs:

- uses: actions/checkout@v3

- name: Tidy
uses: katexochen/go-tidy-check@v2

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-ts.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: lint (web/ts)
name: lint (ts)
on:
push:
branches:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/test.yml → .github/workflows/test-go.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
---
name: test
name: test (go)
on:
push:
branches:
- master
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: setup cgo dependencies
- name: Setup cgo dependencies
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev libsqlite3-mod-spatialite

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 'stable'
go-version: '1.21'

- name: Download
run: go mod download all
Expand Down
70 changes: 35 additions & 35 deletions .github/workflows/cypress-ts.yml → .github/workflows/test-ts.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
---
name: cypress-ts
on:
push:
branches:
- master
pull_request:

defaults:
run:
working-directory: ./viewer
jobs:
cypress-ts:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: "./viewer/package-lock.json"
- name: Install
run: npm ci
- name: Cypress run
uses: cypress-io/github-action@v6
with:
component: true
working-directory: ./viewer
browser: chrome
---
name: test (ts)
on:
push:
branches:
- master
pull_request:

defaults:
run:
working-directory: ./viewer
jobs:
cypress-ts:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: "./viewer/package-lock.json"
- name: Install
run: npm ci
- name: Cypress run
uses: cypress-io/github-action@v6
with:
component: true
working-directory: ./viewer
browser: chrome
19 changes: 0 additions & 19 deletions .github/workflows/tidy.yml

This file was deleted.

0 comments on commit a0b1a15

Please sign in to comment.