Release/2025 #175
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: Tests and push apps | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| style: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@master | |
| - name: Setup node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: '16' | |
| - name: Install dependencies | |
| uses: borales/[email protected] | |
| with: | |
| cmd: install | |
| - name: prettier | |
| uses: borales/[email protected] | |
| with: | |
| cmd: prettier --check | |
| - name: lint | |
| uses: borales/[email protected] | |
| with: | |
| cmd: lint | |
| backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@master | |
| - name: Setup node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: '16' | |
| - name: Install dependencies | |
| uses: borales/[email protected] | |
| with: | |
| cmd: install | |
| - name: test | |
| uses: borales/[email protected] | |
| with: | |
| cmd: backend::test | |
| - name: codecov | |
| # using borales/[email protected] breaks running ./codecov | |
| run: | | |
| curl -Os https://cli.codecov.io/latest/linux/codecov | |
| sudo chmod +x codecov | |
| yarn backend::codecov | |
| frontend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@master | |
| - name: Setup node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: '16' | |
| - name: Install dependencies | |
| uses: borales/[email protected] | |
| with: | |
| cmd: install | |
| - name: typecheck | |
| uses: borales/[email protected] | |
| with: | |
| cmd: frontend::typecheck | |
| # Frontend tests are broken, incompatible with react 19 and should be rewritten | |
| # - name: test | |
| # uses: borales/[email protected] | |
| # with: | |
| # cmd: frontend::test | |
| # - name: codecov | |
| # # using borales/[email protected] breaks running ./codecov | |
| # run: | | |
| # curl -Os https://cli.codecov.io/latest/linux/codecov | |
| # sudo chmod +x codecov | |
| # yarn frontend::codecov | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: [ style, backend, frontend ] | |
| #if: github.ref == 'refs/heads/main' | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@master | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v1 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v1 | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v1 | |
| with: | |
| username: ${{ secrets.DOCKER_USER }} | |
| password: ${{ secrets.DOCKER_TOKEN }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v2 | |
| with: | |
| push: true | |
| tags: | | |
| hackaburg/tilt:latest | |