From a5a16bad90e34947c633f23fc2f3604338f93d71 Mon Sep 17 00:00:00 2001 From: Jesse Bergerstock Date: Sun, 9 Mar 2025 21:54:30 -0400 Subject: [PATCH 1/2] ci: #18_init_ci --- .github/workflows/api_ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/api_ci.yml diff --git a/.github/workflows/api_ci.yml b/.github/workflows/api_ci.yml new file mode 100644 index 0000000..df7015b --- /dev/null +++ b/.github/workflows/api_ci.yml @@ -0,0 +1,24 @@ +name: scrying.ai client api continuous integration +run-name: ${{ github.actor }} is running scrying.ai client api CI +on: + workflow_dispatch: + pull_request: + branches: + - main +jobs: + api_ci: + name: continuous integration for node api + runs-on: ubuntu-22.04 + 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 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." + From 6ca3111a1caf4d68fc48edfa2ea543cb9b6aaf96 Mon Sep 17 00:00:00 2001 From: Jesse Bergerstock Date: Sun, 9 Mar 2025 22:19:27 -0400 Subject: [PATCH 2/2] ci: #18 api build api_ci.yml --- .github/workflows/api_ci.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/api_ci.yml b/.github/workflows/api_ci.yml index df7015b..2d4724f 100644 --- a/.github/workflows/api_ci.yml +++ b/.github/workflows/api_ci.yml @@ -3,22 +3,19 @@ run-name: ${{ github.actor }} is running scrying.ai client api CI on: workflow_dispatch: pull_request: - branches: - - main jobs: api_ci: name: continuous integration for node api runs-on: ubuntu-22.04 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 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + + - name: Install dependencies + run: npm install + working-directory: api + + - name: Build + run: npm run build + working-directory: api