Skip to content

Commit

Permalink
fix CI (minswap#152)
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyen Le Vu Long <[email protected]>
  • Loading branch information
longngn authored Oct 13, 2023
1 parent a9afd5b commit 0a65050
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,7 @@ jobs:
run: npm run check-format
- name: Run build
run: npm run build
- name: Setup WireGuard
run: |
set -o errexit -o pipefail -o nounset
sudo apt-get update
sudo apt-get install -y wireguard-tools
sudo cat << EOL > wg0-client.conf
[Interface]
PrivateKey = ${{ secrets.WG_CLIENT_PRIVATE_KEY }}
Address = 10.0.0.2/32
[Peer]
PublicKey = ${{ secrets.WG_SERVER_PUBLIC_KEY }}
Endpoint = ${{ secrets.WG_SERVER_IP }}:${{ secrets.WG_SERVER_PORT }}
AllowedIPs = 0.0.0.0/0
EOL
sudo wg-quick up ./wg0-client.conf
# Check if the tunnel is up
if sudo wg show wg0-client | grep -q "peer: ${{ secrets.WG_SERVER_PUBLIC_KEY }}"; then
echo "Connected!"
else
echo "Connection failed!"
exit 1
fi
- name: Run test
run: npm test
env:
BLOCKFROST_PROJECT_ID: ${{ secrets.BLOCKFROST_PROJECT_ID }}
BLOCKFROST_PROJECT_ID: mainnetTV9qV3mfZXbE6e44TVGMe1UoRlLrpSQt

0 comments on commit 0a65050

Please sign in to comment.