This repository has been archived by the owner on May 23, 2023. It is now read-only.
fix(deps): update rust crate rsa to 0.9.2 #570
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
# 🐻❄️🐾 Noelware Analytics: Platform to build upon metrics ingested from any source, from your HTTP server to system-level metrics | |
# Copyright 2022-2023 Noelware <[email protected]> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
name: Lint CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- 'feature/**' | |
- 'issue/gh-**' | |
- master | |
paths-ignore: | |
#- '.github/**' | |
- 'docker/**' | |
- 'scripts/**' | |
- '.dockerignore' | |
- '.gitignore' | |
- '**.md' | |
- 'LICENSE' | |
jobs: | |
lint: | |
name: Lint CI | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:latest | |
env: | |
POSTGRES_USER: analytics | |
POSTGRES_PASSWORD: analytics | |
POSTGRES_DATABASE: analytics | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- '5432:5432' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
components: rustfmt, clippy | |
- name: Setup Rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
- name: Generate Prisma client | |
working-directory: ./server | |
run: cargo prisma generate | |
env: | |
DATABASE_URL: "postgresql://analytics:analytics@localhost:5432/analytics?schema=noelware&sslmode=disable" | |
- name: Check for compile errors | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
- name: Clippy | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --all-features | |
# - name: rustfmt | |
# uses: mbrobbel/rustfmt-check@master | |
# if: ${{ !contains(github.event.head_commit.message, 'using rustfmt') }} | |
# with: | |
# token: ${{ secrets.NOEL_TOKEN }} |