Skip to content

ci: Set up CI for devcontainer #6

ci: Set up CI for devcontainer

ci: Set up CI for devcontainer #6

Workflow file for this run

name: ci
on:
push:
branches:
- "main"
pull_request:
branches: [main]
jobs:
build_devcontainer:
name: Build (Devcontainer)
run-on: ubuntu-latest

Check failure on line 13 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 13, Col: 5): Unexpected value 'run-on' .github/workflows/ci.yml (Line: 12, Col: 5): Required property is missing: runs-on
env:
TAG: cpython-devcontainer:1.0.0-${{ github.run_id }}
steps:
- name: Checkout Push to Registry action
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Dockerfile
uses: docker/build-push-action@v5
with:
context: ./devcontainer
load: true
tags: ${{ env.TAG }}
build_autoconf:
name: Build and test (Autoconf)
strategy:
fail-fast: false
matrix:
autoconf_version: ["2.69", "2.71", "2.72"]
runs-on: ubuntu-latest
env:
TAG: autoconf:${{ matrix.autoconf_version }}-${{ github.run_id }}
steps:
- name: Checkout Push to Registry action
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Dockerfile
uses: docker/build-push-action@v5
with:
context: ./autoconf
build-args: AUTOCONF_VERSION=${{ matrix.autoconf_version }}
load: true
tags: ${{ env.TAG }}
- name: Test
run: docker run --rm $TAG autoconf --version | grep ${{ matrix.autoconf_version }}