Skip to content

Commit

Permalink
CSS,ENV and Github Actions lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mario4tier committed Oct 15, 2024
1 parent 4bc6690 commit 698259f
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 34 deletions.
2 changes: 2 additions & 0 deletions .github/lint.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ BASH_EXEC_IGNORE_LIBRARIES=true
IGNORE_GITIGNORED_FILES=true
NATURAL_LANGUAGE_CONFIG_FILE=.textlintrc.jsonc
VALIDATE_CSHARP=false
VALIDATE_CSS=false
VALIDATE_CSS_PRETTIER=false
VALIDATE_GO=false
VALIDATE_GO_MODULES=false
VALIDATE_GO_RELEASER=false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ jobs:

- name: Copy pnpm dependency files
run: |
cp -f $GITHUB_WORKSPACE/docs/ci/pnpm-lock.yaml.ci $GITHUB_WORKSPACE/docs/pnpm-lock.yaml
cp -f $GITHUB_WORKSPACE/docs/ci/package.json.ci $GITHUB_WORKSPACE/docs/package.json
cp -f "$GITHUB_WORKSPACE/docs/ci/pnpm-lock.yaml.ci" "$GITHUB_WORKSPACE/docs/pnpm-lock.yaml"
cp -f "$GITHUB_WORKSPACE/docs/ci/package.json.ci" "$GITHUB_WORKSPACE/docs/package.json"
- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -60,7 +60,7 @@ jobs:
- name: Build Docs
env:
NODE_OPTIONS: --max_old_space_size=8192
run: |-
run: |
cd docs
pnpm run docs:build
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/dev-nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,13 @@ jobs:
- name: Prepare environment
run: |
mkdir -p $HOME/.local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
ln -s $GITHUB_WORKSPACE $HOME/suibase
mkdir -p "$HOME/.local/bin"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
ln -s "$GITHUB_WORKSPACE" "$HOME/suibase"
- name: Tests with Mysten Labs main branch (cutting edge)
env:
CI_BRANCH: ${{ matrix.ci_branch }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: $HOME/suibase/scripts/tests/run-all.sh --main_branch
run: |
"$HOME/suibase/scripts/tests/run-all.sh" --main_branch
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
fetch-depth: 0

- name: Load environment variables from lint.env
run: grep -v '^#' .github/lint.env >> $GITHUB_ENV
run: grep -v '^#' .github/lint.env >> "$GITHUB_ENV"

- name: Super-linter
uses: super-linter/[email protected] # x-release-please-version
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main-nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
test:
name: Test ${{ matrix.os }} ${{ matrix.ci_workdir }}
name: Test ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -68,9 +68,9 @@ jobs:
- name: Prepare environment
run: |
mkdir -p $HOME/.local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
ln -s $GITHUB_WORKSPACE $HOME/suibase
mkdir -p "$HOME/.local/bin"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
ln -s "$GITHUB_WORKSPACE" "$HOME/suibase"
- name: Exhaustive Tests of Suibase main branch (the only release branch).
env:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/release-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:

jobs:
test:
name: Test ${{ matrix.os }} ${{ matrix.ci_workdir }}
name: Test ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -42,11 +42,12 @@ jobs:
- name: Prepare environment
run: |
mkdir -p $HOME/.local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
ln -s $GITHUB_WORKSPACE $HOME/suibase
mkdir -p "$HOME/.local/bin"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
ln -s "$GITHUB_WORKSPACE" "$HOME/suibase"
- name: Only sanity tests the release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: $HOME/suibase/scripts/tests/run-all.sh --release-tests
run: |
"$HOME/suibase/scripts/tests/run-all.sh" --release-tests
9 changes: 5 additions & 4 deletions .github/workflows/rust-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,14 @@ jobs:
- name: Prepare environment
run: |
mkdir -p $HOME/.local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
ln -s $GITHUB_WORKSPACE $HOME/suibase
mkdir -p "$HOME/.local/bin"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
ln -s "$GITHUB_WORKSPACE" "$HOME/suibase"
- name: Run rust demo/api tests only
env:
CI_WORKDIR: ${{ matrix.ci_workdir }}
CI_BRANCH: ${{ matrix.ci_branch }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: $HOME/suibase/scripts/tests/run-all.sh --rust-tests
run: |
"$HOME/suibase/scripts/tests/run-all.sh" --rust-tests
9 changes: 5 additions & 4 deletions .github/workflows/scripts-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ jobs:
- name: Prepare environment
run: |
mkdir -p $HOME/.local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
ln -s $GITHUB_WORKSPACE $HOME/suibase
mkdir -p "$HOME/.local/bin"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
ln -s "$GITHUB_WORKSPACE" "$HOME/suibase"
- name: Run suibase CLI sanity tests only
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: $HOME/suibase/scripts/tests/run-all.sh --scripts-tests
run: |
"$HOME/suibase/scripts/tests/run-all.sh" --scripts-tests
11 changes: 6 additions & 5 deletions .github/workflows/suibase-daemon-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
retention-days: 1

test:
name: Test ${{ matrix.os }} ${{ matrix.ci_workdir }}
name: Test ${{ matrix.os }}
needs: diff
if: ${{ (needs.diff.outputs.isChanged == 'true') || (github.event_name == 'workflow_dispatch') }}

Expand Down Expand Up @@ -84,14 +84,15 @@ jobs:
- name: Prepare environment
run: |
mkdir -p $HOME/.local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
ln -s $GITHUB_WORKSPACE $HOME/suibase
mkdir -p "$HOME/.local/bin"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
ln -s "$GITHUB_WORKSPACE" "$HOME/suibase"
- name: Run suibase rust apps only
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: $HOME/suibase/scripts/tests/run-all.sh --suibase-daemon-tests
run: |
"$HOME/suibase/scripts/tests/run-all.sh" --suibase-daemon-tests
trig:
needs: test
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/trig-rust-api-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ jobs:
- name: Detect Changes
uses: "./.github/actions/diffs"
id: diff
with:
ref: ${{ github.ref }}

- name: Upload Trigger Artifact
if: ${{ steps.diff.outputs.isDocHelperAPI == 'true' }}
Expand Down
1 change: 0 additions & 1 deletion typescript/vscode-extension/.env.development

This file was deleted.

1 change: 0 additions & 1 deletion typescript/vscode-extension/.env.production

This file was deleted.

0 comments on commit 698259f

Please sign in to comment.