Update dependency isbinaryfile to v5.0.7 #350
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: webapp-dev | |
| on: | |
| push | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: '22' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run tests | |
| run: npm test | |
| - name: Run test coverage | |
| run: npm run test:coverage | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: test # Only build/push if tests pass | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Checkout docker-netbootxyz for container source files | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: netbootxyz/docker-netbootxyz | |
| path: docker-netbootxyz | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to the GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ secrets.GHCR_USER }} | |
| password: ${{ secrets.GHCR_TOKEN }} | |
| - name: Build and push image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| push: true | |
| platforms: linux/amd64,linux/arm64 | |
| context: . | |
| file: ./Dockerfile | |
| tags: | | |
| ghcr.io/netbootxyz/${{ github.workflow }}:latest | |
| ghcr.io/netbootxyz/${{ github.workflow }}:${{ github.sha }} |