Skip to content

Commit b53c63f

Browse files
committed
docs: gstest
1 parent b53b1fb commit b53c63f

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

docs/gstest/index.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# [gstest](https://github.com/inflated-goboscript/gstest)
2+
3+
> gstest allows you to run automated tests on goboscript projects
4+
5+
!!! Note
6+
7+
- It's currently rather slow (~2mins) because of playright.
8+
- It's probably possible to speed this up using docker but I do not know how to use it.
9+
- If you know how to and are willing to, please do open a [pull request](https://github.com/inflated-goboscript/gstest/pulls)!
10+
11+
## Usage
12+
13+
!!! Warning
14+
15+
This assumes:
16+
- You are using [inflator](../inflator) to handle dependencies
17+
- You have a `/test/` [inflator project](../inflator/usage/getting%20started/#:~:text=new%20project%20with%20inflator)
18+
19+
Add `.github/workflows/gstest.yml` to your GitHub repository:
20+
21+
```yaml
22+
name: Run /test/
23+
24+
on:
25+
pull_request:
26+
branches: ['main']
27+
push:
28+
branches: ['main']
29+
release:
30+
types: [prereleased, published]
31+
workflow_dispatch:
32+
33+
jobs:
34+
tests:
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- uses: actions/checkout@v4
39+
- uses: inflated-goboscript/gstest@v0.0.4 # change this to the most recent version
40+
```
41+
42+
!!! Note "gstest dependencies"
43+
44+
These are some of the dependencies installed by the gstest action:
45+
46+
- goboscript
47+
- inflator
48+
- TW-CLI
49+
- playwright

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,5 @@ nav:
135135
- TW-CLI: tw-cli/index.md
136136
- Installation: tw-cli/installation.md
137137
- Usage: tw-cli/usage.md
138+
- gstest:
139+
- gstest: gstest/index.md

0 commit comments

Comments
 (0)