Skip to content

Github actions

Github actions #3

Workflow file for this run

name: CI
on:
pull_request:
branches: [ "main", "develop" ]
jobs:
build:
# runs-on: self-hosted
steps:

Check failure on line 11 in .github/workflows/CI.yaml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/CI.yaml (Line: 11, Col: 5): Required property is missing: runs-on
- name: Set up Go 1.21
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Set up bazelisk
uses: bazelbuild/setup-bazelisk@v2
- name: Set up cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.19.x'
- name: Mount bazel cache
uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel
- name: Check import formatting
run: diff -u <(echo -n) <(find . \( -path "./carmen" -o -path "./tosca" \) -prune -o -name '*.go' -exec goimports -l {} \;)
- name: Check code formatting
run: diff -u <(echo -n) <(find . \( -path "./carmen" -o -path "./tosca" \) -prune -o -name '*.go' -exec gofmt -d -s {} \;)
- name: Test
run: go test -v ./...