Skip to content

Commit

Permalink
Copy tags
Browse files Browse the repository at this point in the history
newer crane
  • Loading branch information
edmorley committed Mar 12, 2024
1 parent 926e474 commit de350a1
Showing 1 changed file with 9 additions and 42 deletions.
51 changes: 9 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: CI
on:
push:
# Avoid duplicate builds on PRs.
branches:
- main
# branches:
# - main
pull_request:

permissions:
Expand All @@ -14,47 +14,14 @@ env:
CARGO_TERM_COLOR: always

jobs:
lint:
copy-images:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update Rust toolchain
run: rustup update
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Clippy
run: cargo clippy --all-targets --locked -- --deny warnings
- name: rustfmt
run: cargo fmt -- --check

unit-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update Rust toolchain
run: rustup update
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Run unit tests
run: cargo test --locked

integration-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install musl-tools
run: sudo apt-get install musl-tools --no-install-recommends
- name: Update Rust toolchain
run: rustup update
- name: Install Rust linux-musl target
run: rustup target add x86_64-unknown-linux-musl
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Install Pack CLI
uses: buildpacks/github-actions/[email protected]
- name: Run integration tests
# Runs only tests annotated with the `ignore` attribute (which in this repo, are the integration tests).
run: cargo test --locked -- --ignored
- name: Install crane
uses: buildpacks/github-actions/[email protected]
with:
crane-version: "0.19.0"
- name: Copy images
run: crane copy docker.io/heroku/procfile-cnb docker.io/heroku/buildpack-procfile --all-tags

0 comments on commit de350a1

Please sign in to comment.