-
Notifications
You must be signed in to change notification settings - Fork 17
39 lines (32 loc) · 997 Bytes
/
pr-tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Cypress Test
on:
pull_request:
branches:
- "main"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: "ci.yml"
repo: "falcosecurity/falco"
name: falco-\d+\.\d+\.\d+-\d+\+[a-f0-9]+-wasm.tar.gz
name_is_regexp: true
- name: Extract artifact
run: |
tar -xvf falco-*-wasm.tar.gz/falco-*-wasm.tar.gz
mv falco-*-wasm/usr/bin/falco.wasm ./public
mv falco-*-wasm/usr/bin/falco.js ./src/Hooks/
- name: Remove Unwanted Artifacts
run: rm -rf falco-*-wasm.tar.gz falco-*-wasm
- name: Cypress run
uses: cypress-io/github-action@v5
with:
wait-on: http://localhost:5173
start: npx vite --host