Bump execa from 9.3.0 to 9.3.1 in /packages/kira-release (#181) #319
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: test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build docker image | |
run: docker build . --tag=wemake-services/kira-release | |
- name: run minimal docker-based test | |
run: | | |
docker run \ | |
-e KIRA_RELEASE_SKIP_DOCKER=true \ | |
-v $PWD/tests:/tests \ | |
wemake-services/kira-release \ | |
sh /tests/run.sh | |
- name: run docker-based test with all features | |
run: | | |
# Plus has all the envs to pass local docker check: | |
docker run \ | |
-e CI_PROJECT_NAMESPACE='wemake-services' -e CI_PROJECT_NAME='kira-release' \ | |
-e CI_REGISTRY_USER=${{ github.actor }} -e CI_REGISTRY='ghcr.io' \ | |
-e CI_JOB_TOKEN \ | |
-e KIRA_RELEASE_REPLACE_CONFIG='{ "project": "package.json", "from": "\"version\": \".*\"", "to": "\"version\": \"${nextRelease.version}\"" }' \ | |
-e KIRA_RELEASE_EXEC_CONFIG='{ "prepareCmd": "echo released" }' \ | |
-v $PWD/tests:/tests \ | |
wemake-services/kira-release \ | |
sh /tests/run.sh | |
env: | |
CI_JOB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
deploy: | |
if: "github.event_name == 'push' && github.repository == 'wemake-services/kira-release'" | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: wemakeservices/kira-release | |
flavor: latest=true | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |