From b94803f6d34eb85623f3e5c2b3389418458c4eca Mon Sep 17 00:00:00 2001 From: avankineni <70177491+avankineni@users.noreply.github.com> Date: Tue, 28 Feb 2023 11:37:36 -0800 Subject: [PATCH 1/2] Create work.yml --- .github/workflows/work.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/work.yml diff --git a/.github/workflows/work.yml b/.github/workflows/work.yml new file mode 100644 index 0000000..18a6a3e --- /dev/null +++ b/.github/workflows/work.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From 5b51410d70aa6667e1be0092dc27be82bde37d8f Mon Sep 17 00:00:00 2001 From: avankineni <70177491+avankineni@users.noreply.github.com> Date: Tue, 28 Feb 2023 11:40:27 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1437416..69dc52b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![CI](https://github.com/avankineni/Dice/actions/workflows/work.yml/badge.svg)](https://github.com/avankineni/Dice/actions/workflows/work.yml) + # Dice This repository provides a class that represents a game die, such as the @@ -23,4 +25,4 @@ Once built, run the image: ...or run it with a bind mount to the current source code: -`docker run --mount type=bind,source="$(pwd)",target=/usr/src -it cpp-container` \ No newline at end of file +`docker run --mount type=bind,source="$(pwd)",target=/usr/src -it cpp-container`