Now? #140
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: develop | |
| on: | |
| push: | |
| branches: | |
| - "develop" | |
| jobs: | |
| clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install toolchain | |
| run: rustup toolchain install stable | |
| - name: Install clippy | |
| run: rustup component add clippy | |
| - name: Run clippy | |
| run: | | |
| cd backend-rust | |
| cargo clippy --all-targets --all-features -- -D warnings | |
| frontend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Print frontend toolchain and package hashes | |
| run: | | |
| node --version | |
| npm --version | |
| sha256sum frontend/package.json frontend/package-lock.json | |
| - name: Install frontend dependencies | |
| run: | | |
| cd frontend | |
| npm install | |
| npm ci | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Run tests | |
| run: | | |
| cd backend-rust | |
| ./download_test_data.sh | |
| cargo test --all-targets | |
| docker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v2 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build docker image | |
| uses: docker/build-push-action@v4 | |
| with: | |
| push: true | |
| tags: hoff97/hikeandfly:develop | |
| cache-from: type=registry,ref=hoff97/hikeandfly:develop | |
| cache-to: type=inline |