Skip to content

Commit

Permalink
Add buf installation, removed fetch depth
Browse files Browse the repository at this point in the history
  • Loading branch information
codebycarson committed Dec 5, 2024
1 parent 115acb4 commit f2055e1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch the full history instead of a shallow clone
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install buf
run: |
curl -sSL https://github.com/bufbuild/buf/releases/download/v1.47.2/buf-Linux-x86_64 -o /usr/local/bin/buf
chmod +x /usr/local/bin/buf
buf --version
- run: yarn
- run: yarn lint:all
- run: yarn build:all
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch the full history instead of a shallow clone
- name: Use Node.js
uses: actions/setup-node@v2
with:
Expand All @@ -28,11 +26,8 @@ jobs:

- name: Install buf
run: |
# Download the buf binary
curl -sSL https://github.com/bufbuild/buf/releases/download/v1.27.1/buf-Linux-x86_64 -o /usr/local/bin/buf
# Make it executable
curl -sSL https://github.com/bufbuild/buf/releases/download/v1.47.2/buf-Linux-x86_64 -o /usr/local/bin/buf
chmod +x /usr/local/bin/buf
# Verify installation
buf --version
- name: Install dependencies
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/deploydocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch the full history instead of a shallow clone
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install buf
run: |
curl -sSL https://github.com/bufbuild/buf/releases/download/v1.47.2/buf-Linux-x86_64 -o /usr/local/bin/buf
chmod +x /usr/local/bin/buf
buf --version
- name: Install Dependencies
run: yarn

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch the full history instead of a shallow clone

- name: Delay for 90 seconds to allow NPM package to propagate
run: sleep 90

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch the full history instead of a shallow clone
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install buf
run: |
curl -sSL https://github.com/bufbuild/buf/releases/download/v1.47.2/buf-Linux-x86_64 -o /usr/local/bin/buf
chmod +x /usr/local/bin/buf
buf --version
- name: Install Dependencies
run: yarn

Expand Down

0 comments on commit f2055e1

Please sign in to comment.