Skip to content

Commit

Permalink
Fix: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cbackas committed Jun 21, 2024
1 parent a575c38 commit 5fffde1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 32 deletions.
31 changes: 7 additions & 24 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,8 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Run linters
uses: wearerequired/lint-action@master
with:
Expand All @@ -35,34 +30,22 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Run Tests
run: |
cargo test --verbose
build:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build --verbose
build_docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# just check that it builds, dont push it anywhere cuz whatever
- uses: actions/checkout@v4
- name: Build and push
uses: docker/build-push-action@v3
with:
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/heads/')
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node.js 18
uses: actions/setup-node@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
- name: Install Semantic Release
run: npm install semantic-release @codedependant/semantic-release-docker conventional-changelog-eslint
- name: Semantic Release
Expand All @@ -31,8 +30,7 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Check out code
uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Extract tag name
id: tag
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
Expand All @@ -46,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --local-only
env:
Expand Down

0 comments on commit 5fffde1

Please sign in to comment.