diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml new file mode 100644 index 0000000..e0c814d --- /dev/null +++ b/.github/workflows/github-actions-demo.yml @@ -0,0 +1,23 @@ +name: GitHub Actions Demo +run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +on: + pull_request: + paths: + - 'desktop-app/**.ts' +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20.11.1' + cache: 'npm' + cache-dependency-path: 'desktop-app/package-lock.json' + - run: cd desktop-app && npm install + - run: cd desktop-app && npm test + - run: echo "🍏 This job's status is really ${{ job.status }}." diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..e4d3c74 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/desktop-app/src/App.css b/desktop-app/src/App.css index e69de29..8989443 100644 --- a/desktop-app/src/App.css +++ b/desktop-app/src/App.css @@ -0,0 +1,4 @@ +p { + color: green; + text-align: center; +} diff --git a/desktop-app/src/utils/index.ts b/desktop-app/src/utils/index.ts index e168c95..81caad7 100644 --- a/desktop-app/src/utils/index.ts +++ b/desktop-app/src/utils/index.ts @@ -1,4 +1,3 @@ -// @ts-ignore export function sum(a: number, b: number, c: number | undefined = undefined) { - return a + b; + return a + b + (c ?? 0); } diff --git a/github-actions-kata.iml b/github-actions-kata.iml new file mode 100644 index 0000000..8021953 --- /dev/null +++ b/github-actions-kata.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/templates/workflow-template.yaml b/templates/workflow-template.yaml index ea70802..6db821a 100644 --- a/templates/workflow-template.yaml +++ b/templates/workflow-template.yaml @@ -4,4 +4,4 @@ jobs: example-job: runs-on: # system - https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories steps: - - run: echo "Hello, World!" + - run: echo "Hello, World2!"