Skip to content

Commit

Permalink
improve workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Ivanov committed Sep 3, 2024
1 parent ab5e24d commit 9e921c9
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,40 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: pnpm
cache: 'pnpm'

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Install dependencies
run: pnpm install

- name: Lint code
run: pnpm lint

- name: Format code
run: pnpm format

- name: Run git status
run: git status
- name: Check that lints where commited

- name: Check that lints were committed
run: test -z "$(git status --porcelain)"

- name: Build
run: pnpm build
- name: Check that all build artifacts where commited

- name: Check that all build artifacts were committed
run: test -z "$(git status --porcelain)"

- name: Run tests
run: export NEAR_WORKSPACES_DEBUG=true && pnpm test
run: |
export NEAR_WORKSPACES_DEBUG=true
pnpm test

0 comments on commit 9e921c9

Please sign in to comment.