diff --git a/.github/workflows/build-n-test.yml b/.github/workflows/build-n-test.yml index 6c7ec86..23854a8 100644 --- a/.github/workflows/build-n-test.yml +++ b/.github/workflows/build-n-test.yml @@ -39,13 +39,13 @@ jobs: steps: - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ^1.20.0 id: go - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Lint run: make lint @@ -58,32 +58,32 @@ jobs: runs-on: ubuntu-latest steps: - name: Use Node.js 18 - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: "18.x" - name: Check out the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: npm install --prefix ui/ - name: Lint run: npm run lint --prefix ui/ - + build: runs-on: ubuntu-latest needs: [ test-backend, test-frontend ] if: ${{ github.actor != 'dependabot[bot]' }} steps: - name: Check out the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Docker metadata id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: | name=ghcr.io/edgetx/cloudbuild @@ -94,14 +94,14 @@ jobs: type=semver,pattern={{major}}.{{minor}} - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and Push cloudbuild - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: ./ file: ./Dockerfile.production