Fix pipeline

This commit is contained in:
Deluan 2023-05-22 17:53:00 -04:00 committed by Deluan
parent fd1e06049f
commit f62231f728
2 changed files with 72 additions and 76 deletions

View file

@ -8,6 +8,7 @@ on:
pull_request: pull_request:
branches: branches:
- master - master
jobs: jobs:
go-lint: go-lint:
name: Lint Go code name: Lint Go code
@ -43,6 +44,28 @@ jobs:
exit 1 exit 1
fi fi
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Build and Lint OpenAPI spec
run: make lintapi gen
- name: Verify no changes
run: |
git status --porcelain
if [ -n "$(git status --porcelain)" ]; then
echo 'Changes to OpenAPI spec caused changes to the code. Please review and commit the changes.'
exit 1
fi
- uses: actions/upload-artifact@v3
with:
name: openapi.yaml
path: api/openapi.yaml
go: go:
name: Test with Go ${{ matrix.go_version }} name: Test with Go ${{ matrix.go_version }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -109,37 +132,9 @@ jobs:
name: js-bundle name: js-bundle
path: ui/build path: ui/build
api:
name: Build OpenAPI spec
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- run: make lintapi
- run: make gen
- name: Verify no changes
run: |
git status --porcelain
if [ -n "$(git status --porcelain)" ]; then
echo 'Changes to OpenAPI spec caused changes to the code. Please review and commit the changes.'
exit 1
fi
- uses: actions/upload-artifact@v3
with:
name: openapi.yaml
path: api/openapi.yaml
binaries: binaries:
name: Build binaries name: Build binaries
needs: [js, go, go-lint, api] needs: [js, go, go-lint]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Code - name: Checkout Code

View file

@ -1263,53 +1263,54 @@ func (sh *strictHandler) GetTrack(w http.ResponseWriter, r *http.Request, trackI
// Base64 encoded, gzipped, json marshaled Swagger object // Base64 encoded, gzipped, json marshaled Swagger object
var swaggerSpec = []string{ var swaggerSpec = []string{
"H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tYoeTzdjq6dY4W0BkvXfzu81aGa9dFNRH+sAQkuupwHgb8iBrFkrdHcr62NPsZo07vKq6s371pFGjk", "jZWVfNxMt27NrAVURgsXv7u8pabKdVF1hN8twRJdtTj3A36EtSTJ+z053xia7YytTh9KKo3fva0VqOXd",
"3TQE0ht0O/hys43omCYDE6XMHHSUwRrSAg5TOenPwbCXLdSucsgkcgiGetU69Nyjj30FQkE4aeCQzWs2", "1gTCG3Td+3K7jvCQJj0TpUTvdJTeGuIcdlM56WegyUUDta2cZRI5BH29Kh067tHFvgAuIZw07JDJaya8",
"vDJ02UAWV5AD0/APZkbY+AkkZWbArUkjdjBYI3CTj/DFoQPwdqzluPUxR94Eo9YbetwHcYAdaOMriC7w", "EuuygSwugQFR8A+iB9j4CSglusetTiNmMFgjUM0G+NqhHfA2rOW4dTFH3gSD1ut73GdxgA1owytoXeDr",
"aYIFij4uWliL6XELTdvoTq5lddROH7VhG2jeG9Xx8WcE1XZqFBoxxmcVhXYdaQA+5nK4y8+JzmyFGHO5", "BAsrer9oYSymhi00bqM7uYbVXjt90IZNoPlkVPvHnwFU67FRaMAY31QU2nSkHviYiv4uP0YqMxViTMVC",
"UqzMNs1ud3siEC9cORcs01kBh+i3o9g7yg+wK+lC1GETXtmZu8ZD8nGrXcmxAGgJrUa2ncWpthViBJ3d", "kiJb1bvd7YlAvHDlXLBMJznsol8PYm8p38MuhQtRu014ZWZuGs+SD1vtSgwFQENoNDLtrJ1qWiGCrLOb",
"ltB1TARhi406EdLIbVIfV24CRhzz9A/sch/Dikc6alvODfCBHZperCCnVue9EcKzHgU05ngpGMbzQLcS", "ErqKicBNsVElQhy5Terjym3AiEOe/pld7ktYcU9Hbcq5Hj4wQ+OLFcup0XlrhPCsBwENOV4KmlAW6FYi",
"UZ4GP2vDTKWDQ02mnbAnLpse8hkXocC65MrZsEnwleKh/ZqzafME3E2aVypYH563X6fnQf9MKqVAmEvb", "TNPgZ6WJLlVwqM60I/bEZd1DnlIeCqxzKp0N6w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+BgsjE6pIT48m",
"zko+Xz+h25vt/wMAAP//BBDs6CVBAAA=", "TE0f7L87CqIbf1H0Reqh6lYqUA55rN9INeQ3wcHFUHXv97RKIe2t0roxs87Uvit7e2uWzaVY52rusmBK",
"CjpdPsPr2/X/AgAA//8ulwADnUEAAA==",
} }
// GetSwagger returns the content of the embedded swagger specification file // GetSwagger returns the content of the embedded swagger specification file