Skip to content

feat: add some tests #136

feat: add some tests

feat: add some tests #136

Workflow file for this run

name: pr
on:
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
env:
FORCE_COLOR: 1
steps:
- uses: actions/checkout@v3
with:
submodules: false
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5.3.0
- name: Login to GitHub Docker
env:
DOCKER_REGISTRY: ghcr.io
DOCKER_USER: ${{ github.actor }}
DOCKER_PASS: ${{ secrets.GITHUB_TOKEN }}
run: docker login $DOCKER_REGISTRY --username "$DOCKER_USER" --password "$DOCKER_PASS"
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN}}
- name: Download latest earthly
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.7.1/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
- name: Earthly version
run: earthly --version
- name: Run Linter and Tests
env:
EARTHLY_BUILD_ARGS: "COMMIT_HASH"
COMMIT_HASH: ${{ github.sha }}
FORCE_COLOR: 1
run: |
earthly -P -use-inline-cache --save-inline-cache --strict --push +test