Add prettier #32
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: Integration Test | |
on: [push, pull_request] | |
jobs: | |
integration-test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
continue-on-error: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: npm | |
- name: Build distribution | |
shell: bash | |
run: | | |
npm install | |
npm run build | |
- name: Set up kubeconform | |
id: setup-kubeconform | |
uses: ./ | |
- name: Print Kubeconform installation path | |
env: | |
KUBECONFORM_INSTALLATION_PATH: ${{ steps.setup-kubeconform.outputs.installation-path }} | |
run: | | |
echo "Kubeconform installed..." | |
echo "Installation path: ${KUBECONFORM_INSTALLATION_PATH}" | |
shell: bash | |
- name: Render kubeconform version | |
run: kubeconform -v | |
- name: Create Pod YAML file | |
run: | | |
cat <<EOT >> pod.yaml | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: nginx | |
spec: | |
containers: | |
- name: nginx | |
image: nginx:1.14.2 | |
ports: | |
- containerPort: 80 | |
EOT | |
shell: bash | |
- name: Validate a Pod YAML file with kubeconform | |
run: kubeconform -summary -verbose pod.yaml |