refactor: formatting end to end test features #210
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration (CI) | |
on: pull_request | |
env: | |
# Forcing Earthly to use colours, to make reading output easier. | |
FORCE_COLOR: 1 | |
jobs: | |
formatting: | |
name: Formatting | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
language: [rust, python, shell] | |
steps: | |
- name: Download Earthly. | |
uses: earthly/actions-setup@v1 | |
with: | |
version: v0.8.15 | |
- name: Checkout code. | |
uses: actions/checkout@v4 | |
- name: Check formatting. | |
run: earthly --ci +check-${{ matrix.language }}-formatting | |
linting: | |
name: Linting | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
language: [rust, shell] | |
steps: | |
- name: Download Earthly. | |
uses: earthly/actions-setup@v1 | |
with: | |
version: v0.8.15 | |
- name: Checkout code. | |
uses: actions/checkout@v4 | |
- name: Check linting. | |
run: earthly --ci +check-${{ matrix.language }}-linting | |
compile: | |
name: Compile | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download Earthly. | |
uses: earthly/actions-setup@v1 | |
with: | |
version: v0.8.15 | |
- name: Checkout code. | |
uses: actions/checkout@v4 | |
- name: Compile. | |
run: earthly --ci +compile | |
unit-test: | |
name: Unit Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download Earthly. | |
uses: earthly/actions-setup@v1 | |
with: | |
version: v0.8.15 | |
- name: Checkout code. | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- name: Unit test. | |
run: earthly --ci +unit-test | |
static-binary-test: | |
name: Static Binary Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download Earthly. | |
uses: earthly/actions-setup@v1 | |
with: | |
version: v0.8.15 | |
- name: Checkout code. | |
uses: actions/checkout@v4 | |
- name: Static binary test. | |
run: earthly --ci +static-binary-test | |
end-to-end-test: | |
name: End to End Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download Earthly. | |
uses: earthly/actions-setup@v1 | |
with: | |
version: v0.8.15 | |
- name: Checkout code. | |
uses: actions/checkout@v4 | |
- name: End to End test. | |
run: earthly --ci +end-to-end-test |