Skip to content

Commit

Permalink
feat: no zalando
Browse files Browse the repository at this point in the history
  • Loading branch information
dimonka83 committed Oct 31, 2023
1 parent 8b8fff4 commit 72ad783
Show file tree
Hide file tree
Showing 145 changed files with 9,836 additions and 9,968 deletions.
7 changes: 0 additions & 7 deletions .depcheckrc

This file was deleted.

1 change: 0 additions & 1 deletion .eleventyignore

This file was deleted.

10 changes: 1 addition & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
{
"extends": [
"eslint-config-qiwi",
"prettier"
],
"ignorePatterns": ["src/main/tpl/**/*.js"],
"rules": {
"unicorn/prefer-type-error": 0,
"unicorn/consistent-function-scoping": 0
}
"extends": "eslint-config-qiwi"
}
67 changes: 35 additions & 32 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,59 +1,57 @@
# This is a Github Workflow that runs tests on any push or pull request.
name: CI
on: [push, pull_request]
on: [ push, pull_request ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup NodeJS
- name: Setup
uses: actions/setup-node@v4
with:
node-version: 16

- name: Install deps
- name: Install
run: yarn

- name: Install
run: npx packasso install

- name: Test
run: yarn test
run: npx packasso test

release_radar:
name: Publish radar to gh-pages
# https://github.community/t/trigger-job-on-tag-push-only/18076
publish:
name: Publish
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkuout
- name: Checkout
uses: actions/checkout@v4

- name: Setup NodeJS
- name: Setup
uses: actions/setup-node@v4
with:
node-version: 16

- name: Install deps
- name: Install
run: yarn

- name: Generate
run: |
yarn generate
yarn docs
- name: Install
run: npx packasso install

- name: Build
run: yarn build

- name: Publish gh-pages
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_dir: ./target/radar
commit_message: "docs: update tech-radar static"
allow_empty_commit: true
enable_jekyll: false

release_lib:
name: Release lib
# https://github.community/t/trigger-job-on-tag-push-only/18076
release:
name: Release
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: test
runs-on: ubuntu-latest
Expand All @@ -64,28 +62,33 @@ jobs:
persist-credentials: false
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: 16
- name: Setup
uses: actions/setup-node@v4

- name: Install deps
- name: Install
run: yarn

- name: Install
run: npx packasso install

- name: Build
run: npx packasso build

- name: Test
run: yarn test:unit
run: npx packasso test

- name: Codeclimate
- name: Code Climate
uses: paambaati/codeclimate-action@v5.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{ github.workspace }}/coverage/lcov.info:lcov
${{ github.workspace }}/target/coverage/lcov.info:lcov
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
run: npm_config_yes=true npx zx-semrel
run: npx packasso release
99 changes: 25 additions & 74 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,82 +1,33 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# misc

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
.DS_Store
/.idea

# Runtime data
pids
*.pid
*.seed
*.pid.lock
# local

# Coverage
flow-coverage
lib-cov
coverage
.nyc_output
*.lcov
*.local

# Bundles
bundle/
build/
dist/
target/
typings/
flow-typed/
buildstamp.json
# yarn

# Docs
docs
doc
/.pnp.*
/.yarn/cache
/.yarn/unplugged
/.yarn/install-state.gz
/yarn-error.log

# Deps
node_modules
jspm_packages
bower_components
package-lock.json
npm-shrinkwrap.json
# open-ssl

#IDE
.idea
.idea/

# Yarn Integrity file
.yarn-integrity

.npm
.eslintcache
.node_repl_history
.env

# Typescript
*.tsbuildinfo
.tsbuildinfo
buildcache
.buildcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Temp
src/test/js/temp

# Code Climate
cc-reporter
cc-reporter.*
codeclimate.*
coverage.*

# Creds
*.asc
*.key
*.ca
*.crt
*.csr
*.der
*.kdb
*.org
*.p12
*.pem
*.cert
*.rnd
*.ssleay
*.smime

/node_modules
/target
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"prettier-config-qiwi"
17 changes: 0 additions & 17 deletions .releaserc.json

This file was deleted.

893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.0.1.cjs

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.0.1.cjs
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020
Copyright (c) 2023 QIWI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit 72ad783

Please sign in to comment.