integration-tests.yml 865 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: integration-tests
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. env:
  10. CARGO_TERM_COLOR: always
  11. jobs:
  12. test:
  13. runs-on: macos-latest
  14. steps:
  15. - uses: actions/checkout@v3
  16. with:
  17. submodules: recursive
  18. - name: Install Pre-requisites
  19. run: |
  20. brew install qemu gnu-getopt coreutils cdrtools
  21. - name: Cache tmp files
  22. uses: actions/cache@v3
  23. with:
  24. path: |
  25. .tmp/*.qcow2
  26. .tmp/test_rsa
  27. .tmp/test_rsa.pub
  28. # FIXME: we should invalidate the cache on new bpf-linker releases.
  29. # For now we must manually delete the cache when we release a new
  30. # bpf-linker version.
  31. key: tmp-files-${{ hashFiles('test/run.sh') }}
  32. - name: Run integration tests
  33. run: test/run.sh