Skip to content

codecov needs git, apparently #7

codecov needs git, apparently

codecov needs git, apparently #7

Workflow file for this run

name: test.yaml
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v6
with:
file: .devcontainer/Dockerfile
platforms: linux/amd64
push: false
target: test
tags: ghcr.io/${{ github.repository }}:latest
secret-envs:
CODECOV_TOKEN=CODECOV_TOKEN
build-args: |
GITHUB_SHA=${{ github.sha }}
GITHUB_REPOSITORY=${{ github.repository }}
GITHUB_REF_NAME=${{ github.ref_name }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}