Skip to content

Commit

Permalink
Remove deployment from workflows (#63)
Browse files Browse the repository at this point in the history
* Remove deployment from workflows

* Format with deno fmt
  • Loading branch information
caspervonb authored Sep 19, 2024
1 parent b35a2a7 commit efa155f
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 49 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/consistency_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@ on:
jobs:
install:
runs-on: ubuntu-latest-4-cores
environment: CI
strategy:
matrix:
deno-version: [ 1.45.x ]
module: [ core, jetstream, kv, obj, services, transport-deno, transport-node ]
deno-version: [1.45.x]
module: [
core,
jetstream,
kv,
obj,
services,
transport-deno,
transport-node,
]

steps:
- name: Git Checkout Sources
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,19 @@ name: nats-core release
on:
push:
paths:
- 'core/**'
- '.github/workflows/core.yml'
tags: [ 'core/*' ]
- "core/**"
- ".github/workflows/core.yml"
tags: ["core/*"]
branches:
- '*'
- "*"
jobs:
test:
name: Test core changes with released dependencies
runs-on: ubuntu-latest-4-cores
environment: CI
strategy:
matrix:
deno-version: [1.45.x]
node-version: [ 22.x ]
node-version: [22.x]
permissions:
contents: read
id-token: write
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/deno_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ on:
jobs:
install:
runs-on: ubuntu-latest-4-cores
environment: CI
strategy:
matrix:
deno-version: [ 1.45.x ]
module: [ core, jetstream, kv, obj, services, transport-deno ]
deno-version: [1.45.x]
module: [core, jetstream, kv, obj, services, transport-deno]

steps:
- name: Git Checkout Sources
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/jetstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ name: jetstream release
on:
push:
paths:
- 'jetstream/**'
- '.github/workflows/jetstream.yml'
tags: [ 'jetstream/*' ]
- "jetstream/**"
- ".github/workflows/jetstream.yml"
tags: ["jetstream/*"]
branches:
- '*'
- "*"
jobs:
test:
name: test jetstream with released dependencies
runs-on: ubuntu-latest-4-cores
environment: CI
strategy:
matrix:
deno-version: [1.45.x]
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/kv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ name: kv release
on:
push:
paths:
- 'kv/**'
- '.github/workflows/kv.yml'
tags: [ 'kv/*' ]
- "kv/**"
- ".github/workflows/kv.yml"
tags: ["kv/*"]
branches:
- '*'
- "*"
jobs:
test:
name: test kv with released dependencies
runs-on: ubuntu-latest-4-cores
environment: CI
strategy:
matrix:
deno-version: [1.45.x]
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/node_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ on:
jobs:
node-tests-workspace:
runs-on: ubuntu-latest-4-cores
environment: CI
strategy:
matrix:
deno-version: [ 1.45.x ]
node-version: [ 22.x ]
deno-version: [1.45.x]
node-version: [22.x]

steps:
- name: Git Checkout Sources
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/obj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ name: obj release
on:
push:
paths:
- 'obj/**'
- '.github/workflows/obj.yml'
tags: [ 'obj/*' ]
- "obj/**"
- ".github/workflows/obj.yml"
tags: ["obj/*"]
branches:
- '*'
- "*"
jobs:
test:
name: test obj with released dependencies
runs-on: ubuntu-latest-4-cores
environment: CI
strategy:
matrix:
deno-version: [1.45.x]
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ name: services release
on:
push:
paths:
- 'services/**'
- '.github/workflows/services.yml'
tags: [ 'services/*' ]
- "services/**"
- ".github/workflows/services.yml"
tags: ["services/*"]
branches:
- '*'
- "*"
jobs:
test:
name: test services with released dependencies
runs-on: ubuntu-latest-4-cores
environment: CI
strategy:
matrix:
deno-version: [1.45.x]
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Test Modules
on:
push:
tags:
- '*'
- "*"
branches:
- '*'
- "*"
pull_request:
branches: [main]
types: [opened]
Expand All @@ -17,4 +17,3 @@ jobs:
uses: ./.github/workflows/deno_checks.yml
test-node:
uses: ./.github/workflows/node_checks.yml

18 changes: 8 additions & 10 deletions .github/workflows/transport-node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: test transport-node with local modules
on:
push:
paths:
- 'core/**'
- 'jetstream/**'
- 'kv/**'
- 'obj/**'
- 'services/**'
- "core/**"
- "jetstream/**"
- "kv/**"
- "obj/**"
- "services/**"
branches:
- '*'
- "*"
pull_request:
branches: [main]
types: [opened]
Expand All @@ -18,12 +18,11 @@ jobs:
test:
strategy:
matrix:
deno-version: [ 1.45.x ]
node-version: [ 22.x ]
deno-version: [1.45.x]
node-version: [22.x]

name: test node transport with local dependencies
runs-on: ubuntu-latest-4-cores
environment: CI

steps:
- name: Git Checkout Core
Expand Down Expand Up @@ -52,7 +51,6 @@ jobs:
run: |
deno task disable-npm-workspace
- name: Test Node Transport with specified dependencies
working-directory: transport-node
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_USER_NAME: ${{ github.actor }}
GIT_USER_EMAIL: ${{ github.actor}}@users.noreply.github.com
GIT_USER_EMAIL: ${{ github.actor}}@users.noreply.github.com

0 comments on commit efa155f

Please sign in to comment.