Skip to content

Commit

Permalink
fixing v1 actions
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Jul 29, 2024
1 parent 0ec2a72 commit b334516
Show file tree
Hide file tree
Showing 215 changed files with 121 additions and 105,613 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Build (V1)

on:
push:
Expand All @@ -14,8 +14,8 @@ on:
- ready_for_review

defaults:
run:
working-directory: ./v1
run:
working-directory: ./v1

jobs:
lint:
Expand Down
86 changes: 43 additions & 43 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
name: Coverage

on:
push:
branches:
- main
pull_request:
branches:
- "*"
types:
- synchronize
- opened
- reopened
- ready_for_review

jobs:
coverage:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
registry-url: "https://registry.npmjs.org"

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install Dependencies
run: yarn install

- name: Test with coverage
run: yarn coverage

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
# name: Coverage

# on:
# push:
# branches:
# - main
# pull_request:
# branches:
# - "*"
# types:
# - synchronize
# - opened
# - reopened
# - ready_for_review

# jobs:
# coverage:
# runs-on: ubuntu-latest

# steps:
# - name: Checkout Repository
# uses: actions/checkout@v3

# - name: Setup Node.js
# uses: actions/setup-node@v3
# with:
# node-version: "18"
# registry-url: "https://registry.npmjs.org"

# - name: Install Foundry
# uses: foundry-rs/foundry-toolchain@v1

# - name: Install Dependencies
# run: yarn install

# - name: Test with coverage
# run: yarn coverage

# - name: Upload coverage reports to Codecov
# uses: codecov/[email protected]
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: lcov.info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Generated Files are Updated
name: Generated Files are Updated (V1)

on:
push:
Expand All @@ -13,6 +13,10 @@ on:
- reopened
- ready_for_review

defaults:
run:
working-directory: ./v1

jobs:
generate:
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint TS/JS
name: Lint TS/JS (V1)

on:
push:
Expand All @@ -13,6 +13,10 @@ on:
- reopened
- ready_for_review

defaults:
run:
working-directory: ./v1

jobs:
lint:
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Publish to NPM
name: Publish to NPM (V1)

on:
release:
types: [published]

defaults:
run:
working-directory: ./v1

jobs:
publish:
runs-on: ubuntu-latest
Expand Down
110 changes: 55 additions & 55 deletions .github/workflows/slither.yaml
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
name: Slither

on:
push:
branches:
- main
pull_request:
branches:
- "*"
types:
- synchronize
- opened
- reopened
- ready_for_review

jobs:
slither:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write

steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: "18"

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install dependencies
run: yarn install

- name: Build project
run: yarn build

- name: Run Slither
uses: crytic/slither-action@main
id: slither
continue-on-error: true
with:
sarif: results.sarif
node-version: "18"
fail-on: none

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.slither.outputs.sarif }}
# name: Slither

# on:
# push:
# branches:
# - main
# pull_request:
# branches:
# - "*"
# types:
# - synchronize
# - opened
# - reopened
# - ready_for_review

# jobs:
# slither:
# runs-on: ubuntu-latest
# permissions:
# contents: read
# security-events: write

# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# submodules: recursive

# - name: Install Node.js
# uses: actions/setup-node@v2
# with:
# node-version: "18"

# - name: Install Foundry
# uses: foundry-rs/foundry-toolchain@v1

# - name: Install dependencies
# run: yarn install

# - name: Build project
# run: yarn build

# - name: Run Slither
# uses: crytic/slither-action@main
# id: slither
# continue-on-error: true
# with:
# sarif: results.sarif
# node-version: "18"
# fail-on: none

# - name: Upload SARIF file
# uses: github/codeql-action/upload-sarif@v3
# with:
# sarif_file: ${{ steps.slither.outputs.sarif }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Test (V1)

on:
push:
Expand All @@ -13,6 +13,10 @@ on:
- reopened
- ready_for_review

defaults:
run:
working-directory: ./v1

jobs:
test:
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit b334516

Please sign in to comment.