Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
fix templates path
Browse files Browse the repository at this point in the history
  • Loading branch information
leordev committed Oct 25, 2024
1 parent e5eb093 commit 73dbaf2
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/actions/specs-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ inputs:
description:
'Glob Path with the JUnit test vectors report, can be a single path or a
list of paths in an array'
required: true # required if release-mode is "none"
required: false # required if release-mode is "none"
spec-path:
description: 'The relative path to the tbd spec submodule folder'
required: true # required if release-mode is "none"
required: false # required if release-mode is "none"
suite-name-regex:
description: 'The regex to filter the suite name'
required: false
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/specs-report/badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions .github/actions/specs-report/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/actions/specs-report/dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/actions/specs-report/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"package": "npx ncc build src/index.ts -o dist --source-map --license licenses.txt",
"package:watch": "npm run package -- --watch",
"test": "npx jest",
"package-templates": "cp -r templates dist",
"package-templates": "cp -r src/templates dist",
"all": "npm run format:write && npm run lint && npm run test && npm run coverage && npm run package && npm run package-templates"
},
"license": "MIT",
Expand Down
5 changes: 3 additions & 2 deletions .github/actions/specs-report/src/html-renderer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Eta } from 'eta'
import path from 'path'
import * as core from '@actions/core'

import { ConformanceData, SdkAggregatedStatus } from './spec-release'
Expand Down Expand Up @@ -113,8 +114,8 @@ export const generateConformanceDataHTML = (
const sdksList = Array.from(sdksSet)
sdksList.sort()

const eta = new Eta({ views: './templates' })
return eta.render('spec-conformance-table.eta', {
const eta = new Eta({ views: path.join(__dirname, 'templates') })
return eta.render('./spec-conformance-table', {
specName,
specReleases,
sdksList,
Expand Down

0 comments on commit 73dbaf2

Please sign in to comment.