ci: fix syntax problem (re https://github.com/ButlerLogic/action-auto… #330
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: Build and push Docker image | |
on: | |
push: | |
branches: | |
- "**" | |
tags: | |
- "view-builder-app/v*.*.*" | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: yarn install --frozen-lockfile | |
- run: yarn build | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: yarn install --frozen-lockfile | |
- run: yarn test | |
- name: Codecov | |
uses: codecov/codecov-action@v3 | |
test-publishing-pipeline: | |
if: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- uses: docker-practice/[email protected] | |
with: | |
docker_version: 20.10.8 | |
- run: yarn | |
- uses: tpluscode/[email protected] | |
- run: yarn bootstrap | |
- run: yarn test | |
working-directory: ./packages/publish-views | |
- name: logs on fail | |
if: ${{ failure() }} | |
run: lando logs | |
Test-API: | |
if: false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: docker-practice/[email protected] | |
with: | |
docker_version: 20.10.8 | |
- uses: tpluscode/[email protected] | |
with: | |
healthcheck: http://view-builder.lndo.site/app | |
timeout: 30000 | |
- run: yarn bootstrap | |
- run: lando test-api test/api/**/*.http | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- run: yarn | |
- run: yarn lint | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker meta | |
uses: zazuko/action-docker-meta@main | |
id: docker_meta | |
with: | |
images: ghcr.io/zazuko/ssz-view-builder | |
include-pipeline-id: true | |
strip-tag-prefix: view-builder-app/ | |
- name: Build and push Docker images | |
id: docker_build | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
file: ./Dockerfile | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.docker_meta.outputs.tags }} | |
labels: ${{ steps.docker_meta.outputs.labels }} | |
build-args: | | |
COMMIT=${{ github.sha }} | |
- name: Create Sentry release | |
uses: getsentry/action-release@v1 | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: zazuko | |
SENTRY_PROJECT: ssz-view-builder | |
with: | |
version_prefix: ssz-view-builder@ | |
ignore_empty: true |