3333 uses : actions/setup-python@v2
3434 with :
3535 python-version : ' 3.7'
36- architecture : ' x64'
37-
3836 - name : Setup tests
3937 run : python tests/setup_forcad.py
4038 - name : Install requirements
7169 python-version : ' 3.7'
7270 - name : Install dependencies
7371 run : pip install flake8
74-
7572 - name : Run linters
7673 uses : wearerequired/lint-action@v1
7774 with :
9087 - name : Install dependencies
9188 working-directory : front
9289 run : yarn install
93-
9490 - name : Run linters
9591 uses : wearerequired/lint-action@v1
9692 with :
@@ -100,3 +96,39 @@ jobs:
10096 prettier : true
10197 eslint_dir : front/src
10298 prettier_dir : front/src
99+
100+ test_kube :
101+ runs-on : ubuntu-20.04
102+ steps :
103+ - name : Checkout
104+ uses : actions/checkout@v2
105+ - name : Setup python
106+ uses : actions/setup-python@v2
107+ with :
108+ python-version : ' 3.7'
109+ - name : Install skaffold
110+ run : |
111+ curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/v1.19.0/skaffold-linux-amd64
112+ chmod +x skaffold
113+ sudo mv skaffold /usr/local/bin
114+ - name : Setup Minikube
115+ uses : manusa/actions-setup-minikube@v2.3.0
116+ with :
117+ minikube version : ' v1.17.1'
118+ kubernetes version : ' v1.19.3'
119+ github token : ${{ secrets.GITHUB_TOKEN }}
120+ - name : Install cli requirements
121+ run : pip install -r cli/requirements.txt
122+ - name : Copy test config
123+ run : python tests/setup_forcad.py
124+ - name : Setup configuration
125+ run : ./control.py kube setup
126+ - name : Kustomize build
127+ uses : karancode/kustomize-github-action@master
128+ with :
129+ kustomize_version : ' 3.9.2'
130+ kustomize_build_dir : ' deploy'
131+ env :
132+ GITHUB_ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
133+ - name : Skaffold build
134+ run : ./control.py kube build
0 commit comments