-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Travis CI with GitHub action
- Loading branch information
Showing
10 changed files
with
13,624 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
root = true | ||
|
||
[*.js] | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.yml] | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: {} | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Lint (ESlint) | ||
run: npm run lint | ||
|
||
- name: Lint (Prettier) | ||
run: npm run check-format | ||
|
||
- name: Lint (TypeScript) | ||
run: npm run dtslint | ||
|
||
test: | ||
name: Testing | ||
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: ['ubuntu-latest'] | ||
# https://nodejs.org/en/about/releases/ | ||
node-version: ['12', '14', '16', '17'] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Test | ||
run: npm run test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
Add a new integration test by creating a new subfolder | ||
|
||
Add a file "test.sh" to that runs the test. "test.sh" should exit with a non-zero exit code | ||
Add a file "test.sh" to that runs the test. "test.sh" should exit with a non-zero exit code | ||
and display an error message, if something goes wrong. | ||
|
||
* An integration test should reflect real-world setups that use handlebars. | ||
* It should compile a minimal template and compare the output to an expected output. | ||
* It should use "../.." as dependency for Handlebars so that the currently built library is used. | ||
- An integration test should reflect real-world setups that use handlebars. | ||
- It should compile a minimal template and compare the output to an expected output. | ||
- It should use "../.." as dependency for Handlebars so that the currently built library is used. | ||
|
||
Currently, integration tests are only running on Linux, especially in travis-ci. | ||
|
||
|
||
Currently, integration tests are only running on Linux, especially in our CI GitHub action. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.