-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9596c1f
commit 3ded178
Showing
4 changed files
with
62 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
- run: go version | ||
- run: rm -rf /etc/alternatives/java | ||
- run: ln -s /usr/java/jdk-15.0.1/bin/java /etc/alternatives/java | ||
- run: wget https://go.dev/dl/go1.18.10.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz | ||
- run: wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz | ||
- run: go get ./... | ||
- run: (cd .circleci/ && ./doUnitTests.sh << parameters.cdi-version >>) | ||
- slack/status | ||
|
@@ -42,7 +42,7 @@ jobs: | |
- run: go version | ||
- run: rm -rf /etc/alternatives/java | ||
- run: ln -s /usr/java/jdk-15.0.1/bin/java /etc/alternatives/java | ||
- run: wget https://go.dev/dl/go1.18.10.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz | ||
- run: wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz | ||
- run: go get ./... | ||
- run: (cd .circleci/ && ./website.sh) | ||
- slack/status | ||
|
@@ -57,20 +57,20 @@ jobs: | |
- run: git config --global url."https://github.com/".insteadOf ssh://[email protected]/ | ||
- run: curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash | ||
- run: | | ||
set +e | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | ||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | ||
nvm install 16 | ||
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV | ||
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV | ||
set +e | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | ||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | ||
nvm install 16 | ||
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV | ||
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV | ||
- run: node --version | ||
- run: echo "127.0.0.1 localhost.org" >> /etc/hosts | ||
- run: go version | ||
- run: rm -rf /etc/alternatives/java | ||
- run: ln -s /usr/java/jdk-15.0.1/bin/java /etc/alternatives/java | ||
- run: wget https://go.dev/dl/go1.18.10.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz | ||
- run: wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz | ||
- run: go get ./... | ||
- run: (cd .circleci/ && ./authReact.sh) | ||
- store_artifacts: | ||
|
@@ -90,54 +90,53 @@ workflows: | |
tagged-build: | ||
jobs: | ||
- test-dev-tag-as-not-passed: | ||
filters: | ||
tags: | ||
only: /dev-v[0-9]+(\.[0-9]+)*/ | ||
branches: | ||
only: /test-cicd\/.*/ | ||
filters: | ||
tags: | ||
only: /dev-v[0-9]+(\.[0-9]+)*/ | ||
branches: | ||
only: /test-cicd\/.*/ | ||
- test-unit: | ||
requires: | ||
- test-dev-tag-as-not-passed | ||
context: | ||
- slack-notification | ||
filters: | ||
tags: | ||
only: /dev-v[0-9]+(\.[0-9]+)*/ | ||
branches: | ||
only: /test-cicd\/.*/ | ||
matrix: | ||
parameters: | ||
cdi-version: placeholder | ||
requires: | ||
- test-dev-tag-as-not-passed | ||
context: | ||
- slack-notification | ||
filters: | ||
tags: | ||
only: /dev-v[0-9]+(\.[0-9]+)*/ | ||
branches: | ||
only: /test-cicd\/.*/ | ||
matrix: | ||
parameters: | ||
cdi-version: placeholder | ||
- test-website: | ||
requires: | ||
- test-dev-tag-as-not-passed | ||
context: | ||
- slack-notification | ||
filters: | ||
tags: | ||
only: /dev-v[0-9]+(\.[0-9]+)*/ | ||
branches: | ||
only: /test-cicd\/.*/ | ||
requires: | ||
- test-dev-tag-as-not-passed | ||
context: | ||
- slack-notification | ||
filters: | ||
tags: | ||
only: /dev-v[0-9]+(\.[0-9]+)*/ | ||
branches: | ||
only: /test-cicd\/.*/ | ||
- test-authreact: | ||
requires: | ||
- test-dev-tag-as-not-passed | ||
context: | ||
- slack-notification | ||
filters: | ||
tags: | ||
only: /dev-v[0-9]+(\.[0-9]+)*/ | ||
branches: | ||
only: /test-cicd\/.*/ | ||
requires: | ||
- test-dev-tag-as-not-passed | ||
context: | ||
- slack-notification | ||
filters: | ||
tags: | ||
only: /dev-v[0-9]+(\.[0-9]+)*/ | ||
branches: | ||
only: /test-cicd\/.*/ | ||
- test-success: | ||
requires: | ||
- test-unit | ||
- test-website | ||
- test-authreact | ||
context: | ||
- slack-notification | ||
filters: | ||
tags: | ||
only: /dev-v[0-9]+(\.[0-9]+)*/ | ||
branches: | ||
ignore: /.*/ | ||
|
||
requires: | ||
- test-unit | ||
- test-website | ||
- test-authreact | ||
context: | ||
- slack-notification | ||
filters: | ||
tags: | ||
only: /dev-v[0-9]+(\.[0-9]+)*/ | ||
branches: | ||
ignore: /.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,5 @@ jobs: | |
node-version: '12' | ||
- run: git init && git add --all && git -c user.name='test' -c user.email='[email protected]' commit -m 'init for pr action' | ||
- name: Install latest go | ||
run: wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz && export PATH=$PATH:/usr/local/go/bin && rm go1.21.3.linux-amd64.tar.gz | ||
run: wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz && export PATH=$PATH:/usr/local/go/bin && rm go1.22.3.linux-amd64.tar.gz | ||
- run: ./hooks/pre-commit.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM rishabhpoddar/supertokens_website_sdk_testing | ||
RUN cd /tmp | ||
RUN wget https://dl.google.com/go/go1.17.linux-amd64.tar.gz | ||
RUN tar -xvf go1.17.linux-amd64.tar.gz | ||
RUN wget https://dl.google.com/go/go1.22.3.linux-amd64.tar.gz | ||
RUN tar -xvf go1.22.3.linux-amd64.tar.gz | ||
RUN mv go /usr/local | ||
env GOROOT /usr/local/go | ||
env GOPATH $HOME/go | ||
env PATH $GOPATH/bin:$GOROOT/bin:$PATH | ||
env PATH $GOPATH/bin:$GOROOT/bin:$PATH |