Skip to content

(feat): Increase resize threshold to 99.99% #252

(feat): Increase resize threshold to 99.99%

(feat): Increase resize threshold to 99.99% #252

---
name: Build ๐Ÿ”จ and Release ๐Ÿš€
on:
push:
branches:
- '**'
tags-ignore:
- '**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- architecture: amd64
artifact: ebs-bootstrap-linux-x86_64
- architecture: arm64
artifact: ebs-bootstrap-linux-aarch64
name: Build and Test (${{ matrix.architecture }}) ๐Ÿ”จ
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.architecture }}
- name: Build and Test ๐Ÿ”จ
run: ./build/docker.sh --architecture ${{ matrix.architecture }}
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: ${{ matrix.artifact }}
if-no-files-found: error
retention-days: 1
integration-tests:
runs-on: ubuntu-latest
name: Integration Tests ๐Ÿงช
needs:
- test
steps:
- name: Checkout code ๐Ÿ›’
uses: actions/checkout@v4
- name: Setup bats ๐Ÿฆ‡
uses: bats-core/[email protected]
with:
bats-version: 1.11.0
- name: Download artifacts ๐Ÿ“ฅ
uses: actions/download-artifact@v4
with:
pattern: ebs-bootstrap-*
merge-multiple: true
- name: Make executable
shell: bash
run: |
set -euo pipefail
mv ebs-bootstrap-linux-x86_64 ebs-bootstrap
chmod +x ebs-bootstrap
- name: Setup tests โš™๏ธ
run: bats bats/setup.bats
- name: Test ext4 ๐Ÿงช
run: bats bats/ext4.bats
- name: Test xfs ๐Ÿงซ
run: bats bats/xfs.bats
release:
if: ${{ github.ref_name == github.event.repository.default_branch }} # Only release from the default branch
runs-on: ubuntu-latest
name: Release ๐Ÿš€
needs:
- integration-tests
permissions:
contents: write
id-token: write
steps:
- name: Checkout code ๐Ÿ›’
uses: actions/checkout@v4
- name: Download artifacts ๐Ÿ“ฅ
uses: actions/download-artifact@v4
with:
pattern: ebs-bootstrap-*
merge-multiple: true
- id: version
name: Get next version ๐Ÿงฎ
uses: reecetech/[email protected]
with:
scheme: semver
increment: patch
- id: github-release
name: Create Github Release ๐Ÿ“ฆ
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.version.outputs.v-version }}
prerelease: false
draft: false
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true
files: |
*/ebs-bootstrap-linux-*
- id: push-short-tag
name: Create release short tag ๐Ÿท
uses: richardsimko/[email protected]
with:
tag_name: ${{ steps.version.outputs.major-v-version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}