mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 04:57:37 +03:00
Fix pipeline
This commit is contained in:
parent
fd1e06049f
commit
f62231f728
2 changed files with 72 additions and 76 deletions
53
.github/workflows/pipeline.yml
vendored
53
.github/workflows/pipeline.yml
vendored
|
@ -8,6 +8,7 @@ on:
|
|||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
go-lint:
|
||||
name: Lint Go code
|
||||
|
@ -43,6 +44,28 @@ jobs:
|
|||
exit 1
|
||||
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:
|
||||
name: Test with Go ${{ matrix.go_version }}
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -109,37 +132,9 @@ jobs:
|
|||
name: js-bundle
|
||||
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:
|
||||
name: Build binaries
|
||||
needs: [js, go, go-lint, api]
|
||||
needs: [js, go, go-lint]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
|
|
|
@ -1263,53 +1263,54 @@ func (sh *strictHandler) GetTrack(w http.ResponseWriter, r *http.Request, trackI
|
|||
// Base64 encoded, gzipped, json marshaled Swagger object
|
||||
var swaggerSpec = []string{
|
||||
|
||||
"H4sIAAAAAAAC/+xb744btxF/FYItkATZSFcn7QcB/XBOk+AC/zmcr/UH5wpwd0daxrvkmuTqTjkI6Gv0",
|
||||
"9fokBYfcf1qutJJ9Nnzwl/i05Mz8ZjicPyRzTxNZlFKAMJou7mnJFCvAgMJfS54bUD9KYRgX+CUFnShe",
|
||||
"Gi4FXdCfcZzEG8LEhpRKlqDMhiSOgIsVMXBnZuSfmq1gQRy7N35Y3/y9plisWV4BjSi3XN9VoDY0ooIV",
|
||||
"QBd0l4pGVCcZFMzi4QYKD9wYUJb837/9dvvtwv6HRtRsSstDG8XFim6bD0wptqHbbeTZ/yRS/ZqbbLKO",
|
||||
"JmOGgEg1ueUmC+oJnudxejZUD6Pnu4rl01cSdWOCwB1LDCmYSbKBlsjxSB0dzYNo+IsCZkC9dKoe0lRU",
|
||||
"BSietBqvHLldX0GkIgiVGEkYQcV21V/1xB1nhh3aqeZITzDHdcbE+9liv/6W/0nKI+GDaP4MtD7VC3LQ",
|
||||
"erIL5K2g40zQJXwwE5y08q3+e3Q+fs0bqgfR9pVhypwQxTXSjcdx3fA9TtsO3QeOdFwkeZXCUM0ryJmB",
|
||||
"lCjQslIJaOu2fjbhgpgM7FgphYaIaLDp3s6PbdIuCqZHNKoFdtXYgbmNaMlW8IwX3AyBXWdgvSwGReSS",
|
||||
"oAVICYpYkhGZduhNbtn1zZfCklW5oYu/nEV0KVXBDCI03z+hES244EVV0MVZYzcuDKxANRBfLpcaRjBK",
|
||||
"HCNLidC4YDi2B6AjGEF4AkAtVQDaK6lMvXhVbrRdMCnARqdCKqgdmoMOruqMXCpY8jtk0U/uX333FWpr",
|
||||
"5YFIbc0mVQpqNqI04tvnBtuI1h6GTv6UpVfwrgKNatkqDgT+ycoy5wkaeL4W6YyV/NvftcRg1bL/s4Il",
|
||||
"XdA/zds6de5G9fwnpaR6xrVxYvsme8pSUgveRvRC2K3G8leg1qCQ8uPiqQEQh4A4CNuIvpDmvDKZVPwP",
|
||||
"SD8uphfSkI5sB+ZnWYlPgMOJxS3gSCzH8zy2W+Wesjx/uaSLN/uFXPmw9zL+HRK77Pe03RnIxhjF48q4",
|
||||
"X/tYoeTzdjq6dY4W0BkvXfzu81aGa9dFNRH+sAQkuupwHgb8iBrFkrdHcr62NPsZo07vKq6s371pFGjk",
|
||||
"3TQE0ht0O/hys43omCYDE6XMHHSUwRrSAg5TOenPwbCXLdSucsgkcgiGetU69Nyjj30FQkE4aeCQzWs2",
|
||||
"vDJ02UAWV5AD0/APZkbY+AkkZWbArUkjdjBYI3CTj/DFoQPwdqzluPUxR94Eo9YbetwHcYAdaOMriC7w",
|
||||
"aYIFij4uWliL6XELTdvoTq5lddROH7VhG2jeG9Xx8WcE1XZqFBoxxmcVhXYdaQA+5nK4y8+JzmyFGHO5",
|
||||
"UqzMNs1ud3siEC9cORcs01kBh+i3o9g7yg+wK+lC1GETXtmZu8ZD8nGrXcmxAGgJrUa2ncWpthViBJ3d",
|
||||
"ltB1TARhi406EdLIbVIfV24CRhzz9A/sch/Dikc6alvODfCBHZperCCnVue9EcKzHgU05ngpGMbzQLcS",
|
||||
"UZ4GP2vDTKWDQ02mnbAnLpse8hkXocC65MrZsEnwleKh/ZqzafME3E2aVypYH563X6fnQf9MKqVAmEvb",
|
||||
"2Qe3o5+AvX99KJHIPIfEN9uDnnm3T46okYblF7V/BWoeOz44cXgfYVaficKsYicKCxl8JzAMDO5ceA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M/x/06ZOnbpRNX0ppZCnVGkntmuyFyRFleB1hE+42WqEXYNcgrSUXxZPBQA5BMhBWEf4XOjjUmdC0o+Q",
|
||||
"fllM50KjlmwH5pUo+VfA4cTaLeBIDMdjFput8oAJYxdzPHu7XciVD3sX8Z+QmGV/wM3OsGy0ljQutfu1",
|
||||
"jZWVfNxMt27NrAVURgsXv7u8pabKdVF1hN8twRJdtTj3A36EtSTJ+z053xia7YytTh9KKo3fva0VqOXd",
|
||||
"1gTCG3Td+3K7jvCQJj0TpUTvdJTeGuIcdlM56WegyUUDta2cZRI5BH29Kh067tHFvgAuIZw07JDJaya8",
|
||||
"EuuygSwugQFR8A+iB9j4CSglusetTiNmMFgjUM0G+NqhHfA2rOW4dTFH3gSD1ut73GdxgA1owytoXeDr",
|
||||
"BAsrer9oYSymhi00bqM7uYbVXjt90IZNoPlkVPvHnwFU67FRaMAY31QU2nSkHviYiv4uP0YqMxViTMVC",
|
||||
"kiJb1bvd7YlAvHDlXLBMJznsol8PYm8p38MuhQtRu014ZWZuGs+SD1vtSgwFQENoNDLtrJ1qWiGCrLOb",
|
||||
"ErqKicBNsVElQhy5Terjym3AiEOe/pld7ktYcU9Hbcq5Hj4wQ+OLFcup0XlrhPCsBwENOV4KmlAW6FYi",
|
||||
"TNPgZ6WJLlVwqM60I/bEZd1DnlIeCqxzKp0N6wRfShrar4yMm8fhftS8QsJy97ztOp0F/TMppQSuL01n",
|
||||
"H9yOfoLt/atDiUQwBolvtns982afHGEtNGEnlX8Fah4z3jtx+BRhRp+RwoxiBwoLGXwjMPQM7ly4D6vk",
|
||||
"9EMJiKbANZ1TkLbR96cIluPwYdO4UHVj5m5uUppWbG+3KHPjxQSsuSrq/NMCWgdnH6yb1GTCbzA8u077",
|
||||
"hM9FoP4qdXZVo97E8SYDnYEzVqlAoowoRJLEHosK+1lZ5hOD7J7khQkJWpZQw4iFYEC4wTEHoksZ8p5j",
|
||||
"xEw6EnMk7CfCUDW5JQSpsiiE1MoeylRO3zGI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IFPlTJ7CEpjZNA5pXFKWesuS",
|
||||
"onA62+qf2hcMGdHWpgtbklj1mzV0ZK7Mj7ydLRSkgOT2HQvcFyAp8ASs0es19v2clRZY5KZxn7wzsYLR",
|
||||
"BLiClmu+Pv8DvQYOkjB0WcaMJujUTULL57ZL6TrsguqsjCeJyBvfbf0VMxFPc6I0yOnpyW8vz69ftvIF",
|
||||
"7vgtjvCy6qjw0eTZ5MhMFQVwUlA8w88nrk0qiM7sNp02gWnhHj+YBbBecZIaXcAdnStL1DwCHWh6minT",
|
||||
"5tWHaXlGTPbvL0bM7rxZHD2/fq86mqJ+J7UXRfW4bDRR+y3evkR7C2u9hhpv6eoV7AgK+xBkxLzq6dD6",
|
||||
"duNhyLOjo4NeGXzKzZQtEQLJlVWns9uoNw9zR/a3G+elwVuvCkEg6fbyWnNm5Lf0OsK/OluGYNQ2n7Ze",
|
||||
"4liS57tJum9T1hH+6xhBobc2tnooc9MR23dqPjmRnjLrqIpV0wf770m63hm19g5atVdG405ON27P7cso",
|
||||
"E1ubh1EeK26vrjsQHH4r9bhbYsROGHkD2/dB7g8ymuL4MH/69ejXUVT+ddAjOCBHlKd0SdOSML++zgeb",
|
||||
"envQ9eoD1+8Z83vGfJoZ0/XRTydl+i37RHJmpU0rYE0f3B+70mZ1QPJl8mYlLZQ4PdxvJXP6HfEpqdPf",
|
||||
"CDyx3NkYZtrcKg75X+tu9qstZQvDwct50/o/Kv777/8oZCjRe1ihnBTumKG+xfYrjlJqjxWIXCEJhQRl",
|
||||
"tgtfdC49v3a0eQ3aY/lBoQUTMWH2JMmtb/NOcGh9b9yM76XR99LoiZZG7nnAk6mM/Jb+BgsjE6pIT48m",
|
||||
"TE0f7L87CqIbf1H0Reqh6lYqUA55rN9INeQ3wcHFUHXv97RKIe2t0roxs87Uvit7e2uWzaVY52rusmBK",
|
||||
"CjpdPsPr2/X/AgAA//8ulwADnUEAAA==",
|
||||
}
|
||||
|
||||
// GetSwagger returns the content of the embedded swagger specification file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue