Skip to content

Commit

Permalink
Actions management
Browse files Browse the repository at this point in the history
Signed-off-by: Parajuli Kiran <kiranparajuli589@gmail.com>
  • Loading branch information
kiranparajuli589 committed Dec 20, 2023
1 parent e62067d commit 501751c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 20 deletions.
43 changes: 29 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,46 @@ on:

name: CI

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [latest, 20.x, 18.x, 16.x, 14.x, 12.x]
runs-on: ${{ matrix.os }}
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
with:
all_but_latest: true
access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2.2.2
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- uses: pnpm/action-setup@v2
with:
version: 7.x.x
version: latest
run_install: false

- name: Setup NodeJS
uses: actions/setup-node@v3
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
node-version: '16'
cache: 'pnpm'
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile
run: pnpm install

- name: EsLint
run: pnpm lint
Expand Down
14 changes: 8 additions & 6 deletions src/views/DocsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ const onStateChange = (event) => {
background: #e6e6e6 !important;
}
code {
outline: 1px solid grey;
border-radius: 6px;
padding: .2rem .4rem;
}
code, pre>code {
border-radius: 4px !important;
background: #e6e6e6 !important;
Expand Down Expand Up @@ -234,11 +240,7 @@ const onStateChange = (event) => {
border: 1px solid grey;
}
}
code {
outline: 1px solid grey;
border-radius: 6px;
padding: .2rem .4rem;
}
iframe {
margin-block: .5rem;
border-radius: 8px;
Expand All @@ -248,7 +250,7 @@ const onStateChange = (event) => {
body.theme--dark {
pre, code, pre>code {
background: #303030 !important;
color: rgb(170, 170, 170);
color: rgb(170 170 170);
}
pre>button {
Expand Down

0 comments on commit 501751c

Please sign in to comment.