Skip to content

Commit

Permalink
Merge pull request #15 from AstariaXYZ/feat/update-workflows
Browse files Browse the repository at this point in the history
update workflows
  • Loading branch information
0xgregthedev authored Sep 19, 2023
2 parents f3cd14a + a489143 commit 3d4bdfe
Show file tree
Hide file tree
Showing 144 changed files with 109 additions and 22,041 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy docs to GH Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["md-book"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './docs/book/'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

25 changes: 15 additions & 10 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy docs to GH Pages
name: Build Docs

on:
# Runs on pushes targeting the default branch
Expand Down Expand Up @@ -31,12 +31,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './docs/book/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

- uses: foundry-rs/foundry-toolchain@v1

- name: Document
run: forge doc --build

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "document"
branch: "md-book"
create_branch: true
push_options: "--force"


Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
name: test

on:
workflow_dispatch:
pull_request:

env:
FOUNDRY_PROFILE: ci

jobs:
test:
Resolve-CI:
name: Format, Snapshot
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -22,26 +17,20 @@ jobs:

- run: yarn

- uses: onbjerg/foundry-toolchain@v1
- uses: foundry-rs/foundry-toolchain@v1

- name: Format
run: forge fmt

- name: Test
run: forge test --ffi -vvv

- name: Snapshot
run: forge snapshot

- name: Document
run: forge doc --build
- name: Test
run: forge test -vvv

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "style, document & snapshot"



commit_message: "format & snapshot"



42 changes: 42 additions & 0 deletions .github/workflows/lint_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "lint, test"

on:
workflow_dispatch:
pull_request:

env:
FOUNDRY_PROFILE: ci

jobs:
CI:
name: Lint, Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

- uses: actions/setup-node@v3
with:
node-version: 18

- run: yarn

- uses: foundry-rs/foundry-toolchain@v1

- name: Lint
run: forge fmt --check

- name: Test
run: forge test -vvv

- name: Snapshot
run: forge snapshot --check







13 changes: 0 additions & 13 deletions docs/book.css

This file was deleted.

12 changes: 0 additions & 12 deletions docs/book.toml

This file was deleted.

1 change: 0 additions & 1 deletion docs/book/.nojekyll

This file was deleted.

Loading

0 comments on commit 3d4bdfe

Please sign in to comment.