Skip to content

Commit

Permalink
Add e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
silvs110 committed Oct 23, 2024
1 parent 4651104 commit 8493da8
Show file tree
Hide file tree
Showing 28 changed files with 1,203,440 additions and 236 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.dmg filter=lfs diff=lfs merge=lfs -text
19 changes: 16 additions & 3 deletions .github/workflows/go_wasm_build_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
Expand All @@ -25,13 +29,22 @@ jobs:
go-version: '1.22.5'

- name: Build
shell: bash
run: ./build_wasm
- name: Prepare Chrome
uses: browser-actions/setup-chrome@v1
with:
chrome-version: 130
- name: Prepare Firefox
uses: browser-actions/setup-firefox@v1
with:
firefox-version: '131.0.3'

- name: Test
run: ./run_tests
run: go test -v ./tests/e2e

- name: Commit and push WASM static pages
if: github.event_name == 'push'
if: github.event_name == 'push' && github.ref_name == 'main' && matrix.os == 'ubuntu-latest'
env:
CI_COMMIT_MESSAGE: Add WASM static pages - $(date +'%Y-%m-%dT%H:%M:%S')
CI_COMMIT_AUTHOR: padaiyal
Expand Down
Binary file added tests/e2e/resources/drivers/darwin/chromedriver
Binary file not shown.
Binary file added tests/e2e/resources/drivers/darwin/geckodriver
Binary file not shown.
3 changes: 3 additions & 0 deletions tests/e2e/resources/drivers/drivers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
geckodriver=v0.35.0
chromedriver=v.129.0.6668.100
firefox=v131.0.3
Binary file removed tests/e2e/resources/drivers/geckodriver
Binary file not shown.
Binary file removed tests/e2e/resources/drivers/geckodriver.exe
Binary file not shown.
Binary file not shown.
Binary file added tests/e2e/resources/drivers/linux/geckodriver
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 8493da8

Please sign in to comment.