Skip to content

Commit

Permalink
test: add test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 17, 2022
1 parent 4d59355 commit f2427ba
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ jobs:
}
- run: cat build/template/demo.html

- name: ⛑ -> ejs file
uses: ./
with:
template-file: template/demo.ejs
output: build/template/demo.html
vars: |
{
"htmlContent": "${{ steps.ejs.outputs.content }}"
}
- run: cat build/template/demo.html

- name: ⛑ -> vars-file
uses: ./
with:
Expand Down
6 changes: 6 additions & 0 deletions template/demo.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<body>
<%- htmlContent %>
</body>
</html>

0 comments on commit f2427ba

Please sign in to comment.