name: CI

on: [pull_request, push]

jobs:
  build:
    runs-on: ubuntu-latest
    container:
      image: debian@sha256:6a8bad8d20e1ca5ecbb7a314e51df6fca73fcce19af2778550671bdd1cbe7b43 # aka stable-20211011
    steps:
    - name: setup apt
      run: apt update -y && apt upgrade -y
    - name: install dependencies
      run: apt install -y git golang
    - name: checkout repository
      uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
      with:
        path: "cloud-android-orchestration"
    - name: build
      run: cd cloud-android-orchestration && go build
    - name: test
      run: cd cloud-android-orchestration && go test

Build and run tests on every pull request
Build and run tests on every pull request
