diff --git a/.github/workflows/runner.yml b/.github/workflows/runner.yml index 43b0077f..4f989b45 100644 --- a/.github/workflows/runner.yml +++ b/.github/workflows/runner.yml @@ -6,13 +6,20 @@ jobs: main: name: Runner runs-on: ubuntu-latest + strategy: + matrix: + kubernetes: [v1.18.2,v1.17.5,v1.12.0] steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Setup Node uses: actions/setup-node@master - - name: Run Action - run: export INPUT_MINIKUBE_VERSION="v1.5.2" && export INPUT_KUBERNETES_VERSION="v1.17.2" && export INPUT_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} && node src/index.js + - name: Test Action + uses: ./ + with: + minikube version: v1.9.2 + kubernetes version: ${{ matrix.kubernetes }} + github token: ${{ secrets.GITHUB_TOKEN }} - name: Validate Minikube run: minikube status - name: Validate Cluster diff --git a/package.json b/package.json index 230c0f73..05e9efd4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-actions-setup-minikube", - "version": "1.0.1", + "version": "1.0.2", "description": "Set up your GitHub Actions workflow with a specific version of Minikube and Kubernetes", "main": "src/index.js", "scripts": { diff --git a/src/configure-environment.js b/src/configure-environment.js index 36b57c7d..75c894dd 100644 --- a/src/configure-environment.js +++ b/src/configure-environment.js @@ -19,7 +19,7 @@ const configureEnvironment = () => { stable" `); logExecSync('sudo apt-get update'); - logExecSync('sudo apt-get install docker-ce docker-ce-cli'); + logExecSync('sudo apt-get install -y docker-ce docker-ce-cli conntrack'); }; module.exports = configureEnvironment;