Bump tlm-core version (0.0.51) (#33)
#262
This file contains hidden or 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: Test TLM app | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - staging | |
| pull_request: | |
| jobs: | |
| test-ci: | |
| # "Checks that the app starts with tilt and runs stably" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install kind, tilt, kubectl | |
| run: | | |
| [ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.25.0/kind-linux-amd64 | |
| chmod +x ./kind | |
| sudo mv ./kind /usr/local/bin/kind | |
| curl -fsSL https://raw.githubusercontent.com/tilt-dev/tilt/master/scripts/install.sh | bash | |
| curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" | |
| - name: Create kind cluster | |
| run: | | |
| kind create cluster --name tlm-app-ci | |
| - name: Deploy app | |
| run: | | |
| # Create dummy env file | |
| touch services/chat-backend/.env | |
| TLM_APP_CI=true GITHUB_TOKEN=${{ secrets.TLM_CORE_ACCESS_TOKEN }} tilt ci | |
| test-chat-backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install kind, tilt, kubectl | |
| run: | | |
| [ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.25.0/kind-linux-amd64 | |
| chmod +x ./kind | |
| sudo mv ./kind /usr/local/bin/kind | |
| curl -fsSL https://raw.githubusercontent.com/tilt-dev/tilt/master/scripts/install.sh | bash | |
| curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" | |
| - name: Create kind cluster | |
| run: | | |
| kind create cluster --name tlm-chat-backend | |
| - name: Deploy app | |
| run: | | |
| # Create dummy env file | |
| touch services/chat-backend/.env | |
| TLM_APP_CI=true GITHUB_TOKEN=${{ secrets.TLM_CORE_ACCESS_TOKEN }} tilt up --stream & \ | |
| tilt wait --for condition=ready --timeout=120s | |
| - name: Run tests | |
| run: | | |
| ./scripts/dev/test.sh chat-backend | |
| - name: Delete kind cluster | |
| run: | | |
| kind delete cluster --name tlm-chat-backend |