Skip to content

Commit

Permalink
Actions management
Browse files Browse the repository at this point in the history
Signed-off-by: Parajuli Kiran <[email protected]>
  • Loading branch information
kiranparajuli589 committed Dec 20, 2023
1 parent e62067d commit 4ca001a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 24 deletions.
5 changes: 1 addition & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ module.exports = {
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"linebreak-style": 0,
"quotes": [
"error",
"double"
Expand Down
48 changes: 34 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,49 @@ name: CI

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [latest, 20.x, 18.x, 16.x]
runs-on: ${{ matrix.os }}
# concurrency:
# group: build-${{ github.event.pull_request.number || github.ref }}-${{ matrix.os }}-${{ matrix.node-version }}
# cancel-in-progress: true
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
all_but_latest: true
access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout
uses: actions/checkout@v3

- uses: pnpm/[email protected]
- name: Install Node.js
uses: actions/setup-node@v3
with:
version: 7.x.x
node-version: ${{ matrix.node-version }}

- name: Setup NodeJS
uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
version: latest
run_install: false

- name: Get pnpm store directory
shell: bash
# run: |
# echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
run: |
{
echo 'STORE_PATH<<EOF'
pnpm store path --silent
echo 'EOF'
} >> $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 4ca001a

Please sign in to comment.