Skip to content

Commit

Permalink
Merge pull request #46 from monasticacademy/automated-tests
Browse files Browse the repository at this point in the history
End-to-end testing on github actions
  • Loading branch information
alexflint authored Feb 26, 2025
2 parents 4e8ba06 + cc6a2ae commit bb6fcd3
Show file tree
Hide file tree
Showing 19 changed files with 564 additions and 105 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,34 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Apt
run: sudo apt install -y socat openjdk-21-jdk-headless openjdk-21-jre-headless
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: dnsutils socat openjdk-21-jdk-headless openjdk-21-jre-headless
version: 1.0

- name: Checkout
uses: actions/checkout@v4

- name: Setup
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: stable

- name: Run
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x

- name: Build
run: go build

- name: Test
run: go test

- name: Install
run: |
go install
sudo setcap 'cap_net_admin=ep cap_sys_admin=ep cap_dac_override=ep' $(which httptap)
- name: End To End
run: go run ./testing/run-tests
Loading

0 comments on commit bb6fcd3

Please sign in to comment.