fix tests #91
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Application | |
on: | |
push: | |
branches: [main] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.86.0 | |
target: wasm32-wasip1 # WebAssembly target | |
- name: Install cargo-nextest | |
run: curl -Ls https://get.nexte.st/latest/linux | sudo tar zxf - -C /usr/local/bin | |
- name: Install viceroy | |
run: curl -Ls https://github.com/fastly/Viceroy/releases/download/v0.13.0/viceroy_v0.13.0_linux-amd64.tar.gz | sudo tar zxf - -C /usr/local/bin | |
- name: Install wasm-strip | |
run: sudo apt install -y wabt | |
- name: rustup | |
run: rustup target add wasm32-wasip1 | |
- name: Run tests | |
run: make test | |
- name: Deploy to Compute@Edge | |
uses: fastly/compute-actions@v4 | |
env: | |
FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }} |