Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci-branches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,28 @@ jobs:
uses: ./.github/workflows/run-builds.yaml
with:
push_image: ${{ github.repository == 'authgear/authgear-server' }}

sonarcloud:
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'authgear/authgear-server' }}
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Analyze with SonarCloud
shell: bash
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
docker run \
--rm \
-e SONAR_SCANNER_OPTS=" \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.projectBaseDir=. \
-Dsonar.organization=authgear \
-Dsonar.projectKey=authgear_authgear-server \
-Dsonar.exclusions=e2e/**,**/*.generated.*" \
-e SONAR_TOKEN="${SONAR_TOKEN}" \
-v "${{ github.workspace }}:/usr/src" \
sonarsource/sonar-scanner-cli:latest
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ check-dockerignore:
graphiql:
npm --prefix portalgraphiql ci
npm --prefix portalgraphiql run build
cp ./portalgraphiql/dist/index.html pkg/util/graphqlutil/graphiql.html
cp ./portalgraphiql/dist/index.html pkg/util/graphqlutil/graphiql.generated.html

.PHONY: once/Dockerfile
once/Dockerfile:
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/graphqlutil/graphiql.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/authgear/authgear-server/pkg/util/httputil"
)

//go:embed graphiql.html
//go:embed graphiql.generated.html
var graphiqlHTMLString string

// graphiql.html is generated by running `make graphiql` at project root.
Expand Down
Loading