Skip to content

Commit

Permalink
REFACTOR-78: Set universal path to interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
grafviktor committed Oct 7, 2024
1 parent d19d861 commit 2ead0b5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,25 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: VHS Action
uses: charmbracelet/[email protected]
with:
version: v0.8.0
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.23
cache: true
- name: Setup Tools
run: sudo apt-get update && sudo apt-get install ffmpeg && go install github.com/charmbracelet/[email protected]
- name: Build Binary
run: go build -o gg ./cmd/goto/*.go
run: go build -o gg ./cmd/goto/*.go && cp gg /usr/local/bin && gg -v
- name: Run integration tests
run: e2e/run.sh
run: ./e2e/run.sh
# Following tasks are only required if you want to install vhs manually
# - name: Set up Node
# uses: actions/setup-node@v3
# with:
# node-version: 16
# - name: Install system packages
# run: sudo apt-get update && sudo apt-get install -y ffmpeg jq && sudo snap install ttyd --classic && go install github.com/charmbracelet/[email protected]
# - name: Install VHS utility
# run: go install github.com/charmbracelet/[email protected]
1 change: 1 addition & 0 deletions e2e/2_copy.tape
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ Type "127.0.0.1"
Down
Type "network host description"
Ctrl+S
Sleep 100ms
Type "c"
Type "q"
1 change: 1 addition & 0 deletions e2e/3_delete.tape
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Type "127.0.0.1"
Down
Type "network host description"
Ctrl+S
Sleep 100ms
Type "c"
Type "d"
Type "y"
Expand Down
4 changes: 3 additions & 1 deletion e2e/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
#!/usr/bin/env bash

set -x
set -e
cd $(dirname "$(readlink -f "$0")")

TMP_HOME=temp
HOSTS_FILE="${TMP_HOME}"/hosts.yaml
Expand Down

0 comments on commit 2ead0b5

Please sign in to comment.