mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore: lint
This commit is contained in:
parent
52f47a2434
commit
c2c7c74ae8
3 changed files with 15 additions and 18 deletions
6
.github/workflows/docker.yml
vendored
6
.github/workflows/docker.yml
vendored
|
|
@ -8,9 +8,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
- name: Use Node.js 16.x
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16.x
|
||||
- name: Install Redrun
|
||||
|
|
@ -23,7 +23,7 @@ jobs:
|
|||
id: build
|
||||
run: >
|
||||
redrun build
|
||||
|
||||
|
||||
echo "::set-output name=version::$(grep '"version":' package.json -m1 | cut -d\" -f4)"
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
|
|
|||
13
.github/workflows/nodejs.yml
vendored
13
.github/workflows/nodejs.yml
vendored
|
|
@ -11,10 +11,11 @@ jobs:
|
|||
node-version:
|
||||
- 16.x
|
||||
- 18.x
|
||||
- 19.x
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: Install Redrun
|
||||
|
|
@ -23,7 +24,6 @@ jobs:
|
|||
run: npm install
|
||||
- name: Lint
|
||||
run: redrun fix:lint
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
|
|
@ -33,17 +33,14 @@ jobs:
|
|||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- name: Typos Install
|
||||
run: cargo install typos-cli || echo 'already installed'
|
||||
|
||||
- name: Typos
|
||||
run: typos --write-changes
|
||||
|
||||
- name: Commit fixes
|
||||
uses: EndBug/add-and-commit@v7
|
||||
uses: EndBug/add-and-commit@v9
|
||||
with:
|
||||
message: 'chore: ${{ env.NAME }}: actions: lint ☘️'
|
||||
message: "chore: ${{ env.NAME }}: actions: lint ☘️"
|
||||
- name: Build
|
||||
run: redrun build
|
||||
- name: Test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue