Skip to content

Commit 228e770

Browse files
committed
fix: disable circle ci and fix release workflows
1 parent b1c2dbc commit 228e770

File tree

4 files changed

+63
-9
lines changed

4 files changed

+63
-9
lines changed
File renamed without changes.

.github/workflows/add-dev-tag.yml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ on:
1515
description: 'New release for plugin interface'
1616
required: true
1717
type: boolean
18-
postgres-plugin-version:
18+
postgresql-plugin-version:
1919
description: 'Postgres plugin version'
2020
required: true
21-
new-release-for-postgres-plugin:
21+
new-release-for-postgresql-plugin:
2222
description: 'New release for postgres plugin'
2323
required: true
2424
type: boolean
@@ -38,9 +38,10 @@ jobs:
3838
run-for: add-dev-tag
3939
core-version: ${{ github.event.inputs.core-version }}
4040
plugin-interface-version: ${{ github.event.inputs.plugin-interface-version }}
41-
postgres-plugin-version: ${{ github.event.inputs.postgres-plugin-version }}
41+
postgresql-plugin-version: ${{ github.event.inputs.postgresql-plugin-version }}
4242
add-dev-tag:
4343
runs-on: ubuntu-latest
44+
needs: dependency-branches
4445
steps:
4546
- name: Set up JDK 21.0.7
4647
uses: actions/setup-java@v2
@@ -54,6 +55,7 @@ jobs:
5455
ref: feat/java_gradle_upgrade
5556
- uses: actions/checkout@v2
5657
with:
58+
repository: supertokens/supertokens-core
5759
path: ./supertokens-root/supertokens-core
5860
ref: ${{ fromJson(needs.dependency-branches.outputs.branches)['core'] }}
5961
- uses: actions/checkout@v2
@@ -66,3 +68,35 @@ jobs:
6668
repository: supertokens/supertokens-postgresql-plugin
6769
path: ./supertokens-root/supertokens-postgresql-plugin
6870
ref: ${{ fromJson(needs.dependency-branches.outputs.branches)['postgresql'] }}
71+
- name: Load Modules
72+
run: |
73+
cd supertokens-root
74+
echo "core,master
75+
plugin-interface,master
76+
postgresql-plugin,master
77+
" > modules.txt
78+
cat modules.txt
79+
./loadModules
80+
- name: Setup test env
81+
run: cd supertokens-root && ./utils/setupTestEnv --local
82+
- name: Git config
83+
run: |
84+
git config --global user.name "Supertokens Bot"
85+
git config --global user.email <>"
86+
- name: Add dev tag to plugin interface
87+
if: ${{ github.event.inputs.new-release-for-plugin-interface == 'true' }}
88+
run: |
89+
echo "Adding dev tag to plugin interface"
90+
cd supertokens-root/supertokens-plugin-interface
91+
./addDevTag
92+
- name: Add dev tag to postgres plugin
93+
if: ${{ github.event.inputs.new-release-for-postgresql-plugin == 'true' }}
94+
run: |
95+
echo "Adding dev tag to postgres plugin"
96+
cd supertokens-root/supertokens-postgresql-plugin
97+
./addDevTag
98+
- name: Add dev tag to core
99+
run: |
100+
echo "Adding dev tag to core"
101+
cd supertokens-root/supertokens-core
102+
./addDevTag

.github/workflows/dev-tag.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,33 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616
- uses: supertokens/get-core-dependencies-action@main
17+
with:
18+
run-for: PR
1719
id: result
1820
unit-tests:
1921
name: Run unit tests
2022
uses: ./.github/workflows/unit-test.yml
23+
wait-for-docker:
24+
name: Wait for Docker
25+
runs-on: ubuntu-latest
26+
outputs:
27+
tag: ${{ steps.set_tag.outputs.TAG }}
28+
steps:
29+
- name: Wait for Docker build
30+
uses: fountainhead/action-wait-for-check@v1.1.0
31+
with:
32+
token: ${{ secrets.GITHUB_TOKEN }}
33+
checkName: Build and publish Docker image
34+
ref: ${{ github.sha }}
35+
- name: set tag
36+
id: set_tag
37+
run: |
38+
echo "TAG=${GITHUB_REF}" | sed 's/refs\/heads\///g' | sed 's/\//_/g' >> $GITHUB_OUTPUT
2139
stress-tests:
40+
needs: [wait-for-docker]
2241
uses: ./.github/workflows/stress-tests.yml
42+
with:
43+
tag: ${{ needs.wait-for-docker.outputs.tag }}
2344
mark-as-passed:
2445
needs: [dependency-versions, unit-tests, stress-tests]
2546
name: Mark as passed
@@ -35,8 +56,8 @@ jobs:
3556
# - mongodb
3657
steps:
3758
- name: Mark plugin as passed
38-
if: matrix.plugin != 'sqlite'
39-
uses: muhfaris/request-action@v1
59+
if: matrix.plugin != 'sqlite' && needs.dependency-versions.outputs.versions[matrix.plugin] != ''
60+
uses: muhfaris/request-action@main
4061
with:
4162
url: https://api.supertokens.io/0/plugin
4263
method: PATCH
@@ -48,14 +69,14 @@ jobs:
4869
body: |
4970
{
5071
"password": "${{ secrets.SUPERTOKENS_API_KEY }}",
51-
"version": "${{ needs.dependency-versions.outputs.versions['core'] }}",
72+
"version": "${{ needs.dependency-versions.outputs.versions[matrix.plugin] }}",
5273
"planType": "FREE",
5374
"name": "${{ matrix.plugin }}",
5475
"testPassed": true
5576
}
5677
- name: Mark core as passed
57-
if: matrix.plugin == 'sqlite'
58-
uses: muhfaris/request-action@v1
78+
if: matrix.plugin == 'sqlite' && needs.dependency-versions.outputs.versions['core'] != ''
79+
uses: muhfaris/request-action@main
5980
with:
6081
url: https://api.supertokens.io/0/core
6182
method: PATCH

.github/workflows/stress-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
required: true
99
type: string
1010

11-
1211
jobs:
1312
stress-tests:
1413
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)