Run specs #13
This file contains 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: Run specs | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
kubernetes-testing: | |
name: 'kubernetes-testing' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7' | |
bundler-cache: true | |
- name: Setup configs | |
env: | |
DEV_KUBECONFIG: ${{ secrets.DEV_KUBECONFIG }} | |
DEV_TESTING_CONFIG: ${{ secrets.DEV_TESTING_CONFIG }} | |
run: | | |
echo "${DEV_KUBECONFIG}" > kubeconfig | |
echo "${DEV_TESTING_CONFIG}" > config.yml | |
- name: Setup Chrome | |
uses: ./.github/actions/setup-chrome | |
- name: Run kubernetes-testing specs | |
run: | | |
export KUBECONFIG=kubeconfig | |
make test | |
- name: Cleanup | |
if: ${{ always() }} | |
run: | | |
rm -f kubeconfig || true | |
rm -f config.yml || true |