Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration tests #3

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.github
*.md
thorest.png
coverage.out
integration_tests
50 changes: 50 additions & 0 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Integration Tests

on: [push, pull_request]

permissions:
checks: write
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
integration_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Run Tests
working-directory: integration_tests
run: |
yarn install
yarn test

- name: Publish to Action
uses: dorny/test-reporter@v1
id: test-reporter
if: success() || failure() # run this step even if previous step failed
with:
name: Integration Tests
only-summary: 'false'
list-suites: 'all'
list-tests: 'all'
fail-on-error: 'true'
reporter: 'mocha-json'
path: |
integration_tests/results.json


- name: Echo 'test-reporter' outputs
run: |
echo ${{steps.test-reporter.outputs.url_html}}


3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@
# private gopath
/.build/

package.json
/node_modules/

/.vscode/
/vendor/

.fake_gopath_suffix
.fake_gopath_suffix
6 changes: 6 additions & 0 deletions .idea/ktfmt.xml

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

4 changes: 4 additions & 0 deletions .idea/thor.iml

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

Loading
Loading