Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brombal committed Jan 15, 2024
1 parent 0f0f30a commit dc85c38
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish
name: Build, test and publish

on:
workflow_call:
Expand All @@ -8,10 +8,6 @@ on:
type: string

jobs:
build-test:
uses: brombal/sqltags/.github/workflows/build-and-test.yml@workflow-test
secrets: inherit

publish:
needs: build-test
runs-on: ubuntu-latest
Expand All @@ -24,6 +20,12 @@ jobs:
- name: Build
run: npm run build

- name: Run Docker test containers
run: docker compose up mysql pg -d

- name: Run Tests
run: npm test

- name: Publish
run: cd ./${{ inputs.package }} && npm publish
env:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Build and Test
name: Build and test

on: [push, workflow_call]
on:
push:
branches: [*]

jobs:
build-and-test:
Expand All @@ -15,13 +17,6 @@ jobs:
- name: Build
run: npm run build

- name: Upload Build
uses: actions/upload-artifact@v3
with:
name: build
path: .
retention-days: 1

- name: Run Docker test containers
run: docker compose up mysql pg -d

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ name: Publish Core

on:
push:
tags:
- 'core-v*'
tags: ['core-v*']

jobs:
publish:
uses: brombal/sqltags/.github/workflows/publish.yml@workflow-test
uses: brombal/sqltags/.github/workflows/build-test-publish.yml@workflow-test
secrets: inherit
with:
package: core
5 changes: 2 additions & 3 deletions .github/workflows/publish-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ name: Publish MySQL

on:
push:
tags:
- 'mysql-v*'
tags: ['mysql-v*']

jobs:
publish:
uses: brombal/sqltags/.github/workflows/publish.yml@workflow-test
uses: brombal/sqltags/.github/workflows/build-test-publish.yml@workflow-test
secrets: inherit
with:
package: drivers/mysql

0 comments on commit dc85c38

Please sign in to comment.