I’m trying to shift my CI workflow from GitLab to Github So just having some queries:
- In Gitlab CI, if there are common steps running for each job we use to place it in
gitlab-ci.yml before_script: - export GOPATH=$HOME/go - export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin - pwd - echo "Starting Tests"
before_script automatically runs before the execution of every step in a job.
So, Is there a way to achieve this using Github Actions?
jobs: tests: runs-on: ubuntu-latest steps: - name: Running for app1 run: | echo "common command 1" echo "common command 2" echo "Hello world" - name: Running for app2 run: | echo "common command 1" echo "common command 2" echo "Hello all"