-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start having some kind of useful tests for CI. We still need script e…
…xamples!
- Loading branch information
Showing
5 changed files
with
53 additions
and
26 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,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
npx textmate-tester \ | ||
--textmateExtension scp-spherex \ | ||
--syntax "$CI_NIX_FOLDER/syntaxes/scp.tmLanguage.json" \ | ||
generate-specs --all | ||
|
||
# FIXME: we need: | ||
#--examples "$FORNIX_FOLDER/language_examples/" |
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,4 +1,7 @@ | ||
# https://snyk.io/blog/vs-code-extension-building-auto-cicd-with-github-actions/ | ||
# DOCS: | ||
# https://snyk.io/blog/vs-code-extension-building-auto-cicd-with-github-actions/ | ||
# https://code.visualstudio.com/api/working-with-extensions/continuous-integration#github-actions | ||
# https://github.com/jeff-hykin/better-cpp-syntax | ||
|
||
on: | ||
push: | ||
|
@@ -25,11 +28,21 @@ jobs: | |
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run headless test | ||
uses: GabrielBB/[email protected] | ||
with: | ||
run: npm test | ||
#with: | ||
# node-version: 10.x | ||
#- name: Install dependencies | ||
# run: npm install | ||
#- name: Run headless test (Mocha) | ||
#uses: GabrielBB/[email protected] | ||
#with: | ||
# run: | | ||
# npm test | ||
- name: Run headless test 1 (Basic) | ||
run: npm ci | ||
- name: Run headless test 2 (Validate grammar) | ||
# Test once the grammar. FIXME: we need SCP code examples! | ||
run: | | ||
export CI_NIX_FOLDER="$PWD" | ||
chmod +x .ci-commands/project/test.sh | ||
.ci-commands/project/test.sh | ||
if: runner.os == 'Linux' |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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