Skip to content

Commit

Permalink
setup: add CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
woog2roid committed Apr 28, 2024
1 parent aa8099f commit ad1a2ae
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: RememVR Daily Check
on:
push:
branches: [main]
schedule:
- cron: "0 23 * * *"

jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
steps:
- name: 📦 [Setup] Checkout
uses: actions/checkout@v4

- name: 📦 [Setup] Setup Node
uses: actions/setup-node@v4
with:
node-version: 18

- name: 📦 [Setup] Setup .env
run: |
# copy all secrets from github secrets, and create .env file
jq -r 'to_entries|map("\(.key)=\(.value|tostring)")|.[]' <<< "$SECRETS_CONTEXT" > .env
env:
SECRETS_CONTEXT: ${{ toJson(secrets) }}

- name: 📦 [Setup] Install Dependencies
run: npm install

- name: ⚙️ [Test] Run Test
run: npm run test

0 comments on commit ad1a2ae

Please sign in to comment.