This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 6.18.1 to 7.1.1 #1325
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: CI | |
on: | |
push: | |
pull_request: | |
release: | |
types: [released] | |
jobs: | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- run: yarn install --immutable | |
- run: yarn run format-check | |
es-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- run: yarn install --immutable | |
- run: yarn run lint-check | |
tests: | |
runs-on: ubuntu-latest | |
services: | |
redis: | |
image: redis | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 6379:6379 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- run: yarn install --immutable | |
- run: yarn run build | |
- run: yarn run test:cov | |
- name: Upload Coverage | |
uses: coverallsapp/github-action@v2 | |
docker-publish-staging: | |
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') | |
needs: [prettier, es-lint, tests] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
BUILD_NUMBER=${{ github.sha }} | |
echo "BUILD_NUMBER=${BUILD_NUMBER::7}" >> "$GITHUB_ENV" | |
- uses: docker/[email protected] | |
with: | |
platforms: arm64 | |
- uses: docker/setup-buildx-action@v3 | |
- uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- uses: docker/build-push-action@v5 | |
env: | |
DOCKER_IMAGE_TAG: safeglobal/safe-gelato-relay-service:staging | |
with: | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
build-args: | | |
BUILD_NUMBER=${{ env.BUILD_NUMBER }} | |
VERSION=${{ github.ref_name }} | |
tags: ${{ env.DOCKER_IMAGE_TAG }} | |
# Use inline cache storage https://docs.docker.com/build/cache/backends/inline/ | |
cache-from: type=registry,ref=${{ env.DOCKER_IMAGE_TAG }} | |
cache-to: type=inline | |
docker-publish: | |
if: github.event_name == 'release' && github.event.action == 'released' | |
needs: [prettier, es-lint, tests] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
BUILD_NUMBER=${{ github.sha }} | |
echo "BUILD_NUMBER=${BUILD_NUMBER::7}" >> "$GITHUB_ENV" | |
- uses: docker/[email protected] | |
with: | |
platforms: arm64 | |
- uses: docker/setup-buildx-action@v3 | |
- uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- uses: docker/build-push-action@v5 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
build-args: | | |
BUILD_NUMBER=${{ env.BUILD_NUMBER }} | |
VERSION=${{ github.ref_name }} | |
tags: | | |
safeglobal/safe-gelato-relay-service:${{ github.event.release.tag_name }} | |
safeglobal/safe-gelato-relay-service:latest | |
# Use inline cache storage https://docs.docker.com/build/cache/backends/inline/ | |
cache-from: type=registry,ref=safeglobal/safe-gelato-relay-service:latest | |
cache-to: type=inline | |
autodeploy: | |
runs-on: ubuntu-latest | |
needs: [docker-publish-staging] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Deploy Staging | |
run: bash scripts/autodeploy.sh | |
env: | |
AUTODEPLOY_URL: ${{ secrets.AUTODEPLOY_URL }} | |
AUTODEPLOY_TOKEN: ${{ secrets.AUTODEPLOY_TOKEN }} | |
TARGET_ENV: 'staging' |