From ae9fdb41814d3d5d70b0bb529f61f78904c1db1c Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 22 Oct 2023 10:07:03 +0200 Subject: [PATCH] Check updates --- .github/workflows/build.yml | 2 +- .github/workflows/check-updates.yml | 22 ++++++++++++++++++++++ .github/workflows/pr.yml | 5 +++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/check-updates.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2ceff9b..f9ee62e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - name: Setup Node.js environment - uses: actions/setup-node@v2.1.2 + uses: actions/setup-node@v3.1. - name: Install Dependencies run: npm i diff --git a/.github/workflows/check-updates.yml b/.github/workflows/check-updates.yml new file mode 100644 index 0000000..6aba3f9 --- /dev/null +++ b/.github/workflows/check-updates.yml @@ -0,0 +1,22 @@ +name: Check Update +concurrency: check + +on: + workflow_dispatch: + schedule: + # Automatically run on every Sunday + - cron: '0 0 * * 0' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4.1.0 + with: + token: ${{ secrets.WORKFLOW_SECRET }} + + - name: Check for Update + uses: saadmk11/github-actions-version-updater@v0.8.1 + with: + token: ${{ secrets.WORKFLOW_SECRET }} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 9c8c5b8..db88348 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -25,5 +25,10 @@ jobs: - name: Run Tests run: npm run test:ci + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: Run Build run: npm run build