So I've been experimenting with new Github Actions, and tried to setup a workflow for running tests in linux environment. I already have a perfectly working Travis config which utilizes
os: - linux env: language: generic sudo: required dist: trusty install: - if [ $TRAVIS_OS_NAME = linux ]; then eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"; fi before_script: - ... FoundationDB installation ... script: - swift test
I tried to port it to Github workflow:
name: FDBSwift on: pull_request: branches: - master jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Install swiftenv run: eval "$(curl -sL https://swiftenv.fuller.li/install.sh)" - name: Install FoundationDB run: ... FoundationDB installation ... - name: Run tests run: swift test
but when I triggered the check, I got an error
swift: command not found as if step
Run tests lost context.
Eventually I got working when I just squeezed all prep work into one step along with
swift test, but it feels wrong.
Apparently I'm missing something, but official documentation isn't very friendly. Can anyone please help me with this?