Skip to content

Commit

Permalink
Merge branch 'main' into bump-styled-component-version
Browse files Browse the repository at this point in the history
  • Loading branch information
mi5q committed Jan 29, 2024
2 parents 9ac9dcb + 7cc67f7 commit 3325e03
Show file tree
Hide file tree
Showing 11 changed files with 129 additions and 15 deletions.
10 changes: 2 additions & 8 deletions .babelrc
@@ -1,10 +1,4 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-class-properties"
]
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["babel-plugin-styled-components"]
}
1 change: 1 addition & 0 deletions .eslintignore
@@ -0,0 +1 @@
**/*.snap
3 changes: 2 additions & 1 deletion .eslintrc
Expand Up @@ -3,5 +3,6 @@
"env": {
"jest": true
},
"parser": "babel-eslint"
"parser": "@babel/eslint-parser",
"plugins": ["prettier"]
}
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: probablyup # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
# patreon: probablyup
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches:
- "main"
pull_request_target:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- name: Restore yarn cache
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
restore-keys: |
yarn-cache-folder-
- name: Install modules
run: yarn --pure-lockfile

- name: Run tests
run: yarn test
71 changes: 71 additions & 0 deletions .github/workflows/codeql-analysis.yml
@@ -0,0 +1,71 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: "30 21 * * 0"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["javascript"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# 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

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
node_modules
yarn-error.log
1 change: 1 addition & 0 deletions .jest.native.json
@@ -1,5 +1,6 @@
{
"preset": "react-native",
"testEnvironment": "node",
"testRegex": "test/native/.*\\.spec\\.js$",
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
Expand Down
1 change: 1 addition & 0 deletions .jest.preact.json
Expand Up @@ -4,5 +4,6 @@
},
"setupFilesAfterEnv": ["<rootDir>/test/preact/setup.js"],
"snapshotSerializers": ["enzyme-to-json/serializer"],
"testEnvironment": "jsdom",
"testRegex": "test/preact/.*\\.spec\\.js$"
}
1 change: 1 addition & 0 deletions .nvmrc
@@ -0,0 +1 @@
v20
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

0 comments on commit 3325e03

Please sign in to comment.