Skip to content

chore(deps): update dependency prettier to ^3.1.0 #442

chore(deps): update dependency prettier to ^3.1.0

chore(deps): update dependency prettier to ^3.1.0 #442

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags: ['**']
pull_request:
branches: [main]
permissions:
contents: read
env:
RUST_VERSION: 1.68.2
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
profile: minimal
override: true
- uses: ciffelia/cargo-cache-action@v1
- name: Check
run: cargo check
format:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
profile: minimal
components: rustfmt
override: true
- name: Check code format
run: cargo fmt --all -- --check
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
override: true
profile: minimal
components: clippy
- uses: ciffelia/cargo-cache-action@v1
- name: Run lint
run: cargo clippy --all-targets --all-features -- -D warnings
check-next-version:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup devtools
run: yarn install --immutable
working-directory: ./devtools
- name: Check next version
run: yarn run print-next-version
working-directory: ./devtools
docker-build-push:
needs: [check, format, lint]
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
if: github.ref == 'refs/heads/main'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build (and push)
uses: docker/build-push-action@v4
with:
context: .
tags: ghcr.io/ciffelia/koe:git-${{ github.sha }}
build-args: |
SENTRY_RELEASE=${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
push: ${{ github.ref == 'refs/heads/main' }}
sentry-release:
if: github.ref == 'refs/heads/main'
needs: [docker-build-push]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: production