Skip to content

Commit

Permalink
build(github-ci): add github action and dependabot configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Nymphxyz committed May 17, 2023
1 parent e09b0ae commit cae2903
Show file tree
Hide file tree
Showing 6 changed files with 341 additions and 263 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "pnpm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
10 changes: 10 additions & 0 deletions .github/workflows/cd-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Deploy

on:
push:
branches:
- main

jobs:
CI:
uses: United-Earth-Team/ueg-draw-vue/.github/workflows/ci.yml@main
10 changes: 10 additions & 0 deletions .github/workflows/ci-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Check

on:
pull_request:
branches:
- main

jobs:
CI:
uses: United-Earth-Team/ueg-draw-vue/.github/workflows/ci.yml@main
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
workflow_call

jobs:
Check:
runs-on: ubuntu-latest

steps:
- name: Download repository
uses: actions/checkout@v3

- name: PNPM Cache
uses: actions/cache@v3
with:
path: ~/.pnpm
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.json') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Read .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvm

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: latest

- name: Install libs
run: |
pnpm install --frozen-lockfile
- name: Build
run: |
pnpm run build
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.16.0
Loading

0 comments on commit cae2903

Please sign in to comment.