Skip to content

Commit 4f883b5

Browse files
jarrodekdeiteris
andauthored
ARC standards (#37)
* Additional HTTP label styling, heading colors, unified border bottom variable for collapsible sections (#36) * feat: add variables to adjust heading colors * docs: add table with styling variables, fix typo, adjust formatting of readme * feat: add variables to adjust method label font size and width in api url * refactor: use the same variable as in other collapsible sections * ci: updating the CI pipeline Signed-off-by: Pawel Psztyc <[email protected]> * chore: updating meta Signed-off-by: Pawel Psztyc <[email protected]> * test: updating test timeouts Signed-off-by: Pawel Psztyc <[email protected]> * test: removing WIN because of error that is not happening locally Signed-off-by: Pawel Psztyc <[email protected]> Co-authored-by: Yury <[email protected]>
1 parent 1497c17 commit 4f883b5

File tree

11 files changed

+1182
-3130
lines changed

11 files changed

+1182
-3130
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ master ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ master ]
20+
schedule:
21+
- cron: '21 7 * * 5'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
language: [ 'javascript' ]
32+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33+
# Learn more:
34+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v2
39+
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@v1
43+
with:
44+
languages: ${{ matrix.language }}
45+
# If you wish to specify custom queries, you can do so here or in a config file.
46+
# By default, queries listed here will override any specified in a config file.
47+
# Prefix the list here with "+" to use these queries and those in the config file.
48+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
49+
50+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51+
# If this step fails, then you should remove it and run the build manually (see below)
52+
- name: Autobuild
53+
uses: github/codeql-action/autobuild@v1
54+
55+
# ℹ️ Command-line programs to run using the OS shell.
56+
# 📚 https://git.io/JvXDl
57+
58+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59+
# and modify them (or add more) to build your code if your project
60+
# uses a compiled language
61+
62+
#- run: |
63+
# make bootstrap
64+
# make release
65+
66+
- name: Perform CodeQL Analysis
67+
uses: github/codeql-action/analyze@v1

.github/workflows/deployment.yml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
name: Tests and publishing
2+
env:
3+
FORCE_COLOR: 1
4+
on:
5+
push:
6+
branches:
7+
- master
8+
- main
9+
- develop
10+
pull_request:
11+
branches:
12+
- master
13+
- main
14+
jobs:
15+
test_linux:
16+
name: ${{ matrix.os }}
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os: [ubuntu-20.04]
21+
# os: [ubuntu-18.04, ubuntu-20.04]
22+
runs-on: ${{ matrix.os }}
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-node@v1
26+
with:
27+
node-version: 14
28+
- uses: microsoft/playwright-github-action@v1
29+
- uses: actions/cache@v1
30+
with:
31+
path: ~/.npm
32+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
33+
restore-keys: |
34+
${{ runner.os }}-node-
35+
- name: Install dependencies
36+
run: npm ci
37+
- name: Run tests
38+
run: npm test
39+
# test_win:
40+
# name: "Windows"
41+
# runs-on: windows-latest
42+
# steps:
43+
# - uses: actions/checkout@v2
44+
# - uses: actions/setup-node@v1
45+
# with:
46+
# node-version: 14
47+
# - uses: microsoft/playwright-github-action@v1
48+
# - uses: actions/cache@v1
49+
# with:
50+
# path: ~/.npm
51+
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
52+
# restore-keys: |
53+
# ${{ runner.os }}-node-
54+
# - name: Install dependencies
55+
# run: npm ci
56+
# - name: Run tests
57+
# run: npm test
58+
tag:
59+
name: "Publishing release"
60+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
61+
needs:
62+
- test_linux
63+
# - test_win
64+
runs-on: ubuntu-latest
65+
steps:
66+
- name: Checkout code
67+
uses: actions/checkout@v2
68+
with:
69+
fetch-depth: 0
70+
- uses: actions/setup-node@v2
71+
with:
72+
node-version: '14.x'
73+
registry-url: 'https://registry.npmjs.org'
74+
- uses: actions/cache@v1
75+
with:
76+
path: ~/.npm
77+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
78+
restore-keys: |
79+
${{ runner.os }}-node-
80+
- run: npm install
81+
- name: Read version from package.json
82+
uses: culshaw/read-package-node-version-actions@v1
83+
id: package-node-version
84+
- name: Changelog
85+
uses: scottbrenner/generate-changelog-action@master
86+
id: Changelog
87+
- name: Github Release
88+
id: create_release
89+
uses: actions/create-release@latest
90+
env:
91+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92+
with:
93+
tag_name: v${{ steps.package-node-version.outputs.version }}
94+
release_name: v${{ steps.package-node-version.outputs.version }}
95+
body: |
96+
${{ steps.Changelog.outputs.changelog }}
97+
draft: false
98+
prerelease: false
99+
- run: npm publish --access public
100+
env:
101+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/tests.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)