Skip to content

Commit

Permalink
Release 0.1.4 (#3342)
Browse files Browse the repository at this point in the history
* fix(ui): image preview stretch issue (#2815)

* test(cypress): unskip tests, improvements on tests/commands (#2814)

* fix(user): styled as planned on figma (#2506)

* feat(jest): 100% coverage for store/ui/getters (#2820)

* feat(jest): 79% coverage for store/ui/mutations.ts (#2819)

* fix(chat): fix scrollbar appearing while sending message (#2795)

* fix(files): special icon for videos and minor refactor (#2798)

* fix(mobile): hide virtual keyboard when scroll (#2792)

* chore(jest): add coverage on store/friends/mutations.test.ts (#2824)

* chore(cypress): update workflow file from cypress gh action (#2828)

* feat(chat): create older messages info block above chatbar (#2784)

* chore(jest): increase test coverage UserPermissions/index.test.ts (#2833)

* chore(jest): update test (#2834)

* chore(jest): add more test in crypto test (#2835)

* chore(jest): more tests (#2838)

* chore(jest): remove not used imports (#2839)

* chore(jest): add more solana tests (#2842)

* chore(jest): add more coverage (#2843)

* test(cypress): skip chat tests failing in CI (#2830)

* fix(files): nsfw scan memory limit (#2655)

* test(cypress): add tests for invalid image on account creation (#2829)

* feat(search): orderby search results (#2794)

* feat(csam): add toggle for csam scan and save info to textile (#2809)

* chore(jest): resolve eslint warnings (#2850)

* feat(jest): 90% coverage for FilSystem.ts (#2852)

* feat(jest): 97% coverage for store/friends/mutations (#2851)

* feat(files): dropzone for file uploads (#2796)

* test(cypress): skip cypress tests for timeouts (#2861)

* chore(import): remove not used import (#2862)

* chore(import): remove not used import (#2863)

* chore(glyphs): removes description (#2875)

* fix(mobile): user jump between different photo (#2821)

* chore(scrollbar): created new scrollbar component (#2856)

* fix(mobile): virtual keyboard hide chatbox in chat (#2864)

* fix: mobile keyboard update (#2849)

* chore(locales): update locale (#2883)

* chore(update): update bread (#2884)

* fix(chat): show placeholder on image load error (#2818)

* chore(ui): refactor view/message/Friend (#2841)

* test(cypress): add chat reaction tests (#2887)

* chore(refactor): refactor to document title using vue composition api (#2803)

* fix(profile): change quick profile position on error display (#2879)

* chore(jest): add jest test - store/meta/state.test.ts (#2895)

* feat(jest): 100% coverage for store/meta/mutations (#2897)

* fix(replies): display correct reply text (#2882)

* feat(jest): 79% coverage for store/ui/mutations (#2905)

* feat(jest): 22% coverage for MetadataManager (#2906)

* fix(files): missing accent color files (#2891)

* feat(jest): 100% coverage for Directory.ts (#2920)

* chore(jest): increase coverage (#2922)

* chore(jest): increase coverage on store/textile/getters.test.ts (#2925)

* chore(jest): remove skip on test (#2927)

* test(cypress): updates for privacy toggles and fixes (#2909)

* test(cypress): add reaction tests and skip tests failing (#2934)

* chore(vuetify): shrink bundle, remove vuetify (#2904)

* fix(accounts): show hide phrase button (#2907)

* fix(mobile): fix image picker position (#2921)

* fix(chat): fix reply modal disappearing issue (#2911)

* chore(chat): fixed actions position issue replies width (#2900)

* feat(jest): 100% coverage for store/settings/actions (#2937)

* fix(emoji-scroll): emoji persist on scroll (#2924)

* chore(translations): updated sidebar's translations (#2894)

* fix(files): persistent files upload status (#2889)

* feat(account): better image format rules on profile pic creation (#2892)

* feat(ui): user update profile picture (#2903)

* chore(locales): update locale

* feat(jest): 100% coverage for store/textile/getters (#2952)

* feat(settings): nsfw filter user setting (#2917)

* chore(remove): remove redundant comments (#2948)

* fix(mobile): nav profile picture not showing (#2947)

* fix(replies): change avatar color to correct one (#2878)

* chore(skip): skip test

* feat(jest): 86% coverage for BlobToBase64.ts (#2961)

* feat(jest): 100% coverage for store/ui/getters (#2960)

* chore(refactor): upload component refactor (#2717)

* chore(jest): add jest tests (#2914)

* chore(locales): minor improvements (#2943)

* feat(files): large file downloads, improved qol, and improve extension fixing (#2846)

* feat(jest): 65% coverage for store/settings/actions (#2965)

* fix(sidebar): theme color for unread badge (#2954)

* test(cypress): remove privacy toggles screen validations (#2964)

* chore(glyphs): add thumbnail and small copies of glpyhs to boost performance (#2949)

* chore(update): minor update (#2968)

* test(cypress): add tests for profile note (#2967)

* feat(jest): 100% coverage for store/settings/actions (#2969)

* feat(jest): 78% coverage for store/ui/mutations (#2970)

* test(cypress): add tests for context menu (#2974)

* feat(jest): 83% coverage for store/ui/mutations (#2979)

* feat(jest): 100% coverage for store/settings/mutations (#2978)

* feat(csam): prevent files share if consent not granted (#2857)

* fix(files): change position of close button tooltip (#2982)

* fix(files): change line height for image title (#2981)

* fix(settings): remove signaling server setting (#2977)

* test(cypress): add tests for chat search (#2984)

* fix(chat): fix quick reaction context menu (#2980)

* feat(files): blur nsfw image thumbnails based on settings (#2958)

* fix(locales): fix punctuation (#2988)

* feat(jest): 87% coverage for libraries/Solana/Solana (#3001)

* fix(files): store cleanup and additional files status messages (#2971)

* feat(jest): 100% coverage for store/chat/mutations (#3011)

* feat(jest): 100% coverage for store/chat/getters (#3013)

* chore(bundle): minors (#2962)

* chore(typo): fix typo

* chore(typo): fix typo

* test(cypress): add tests for file folder rename (#3014)

* chore(cypress): skip

* test(cypress): add markdown tests (#3018)

* chore(script): add script (#3017)

* feat(jest): 100% coverage for components/views/chat/search/SearchUtil (#3021)

* fix(settings): disable scroll while crop is opening (#3002)

* chore(naming): update naming (#3024)

* feat(jest): 96% coverage for libraries/Solana/Solana (#3036)

* fix(upload): fix leftover errors/progress upload on recipient (#3019)

* feat(jest): 100% coverage for store/accounts/mutations (#3037)

* fix(files): hide unused dropdown (#3039)

* test(cypress): fixes and unskips for tests (#3035)

* fix(files): pluralization logic plus translations for dir item count (#3038)

* chore(emoji-picker): clean up component (#3042)

* fix(sidebar): change styles for friends request label (#2983)

* chore(scrollbar): added new scrollbar to emote (#2899)

* feat(jest): 100% coverage for store/chat/actions (#3051)

* feat(jest): 95% coverage for store/webrtc/mutations (#3050)

* chore(quick-reactions): fixed shadow hover color (#3054)

* refactor(chat): change messages markdown (#3012)

* fix(upload): make error messages look same (#3053)

* chore(profile-icon): changed profile popup icon (#3047)

* chore(reactions): fixed background color (#3056)

* chore(jest): remove duplicated test (#3058)

* chore(lint): minor lint (#3059)

* feat(jest): 100% coverage for store/friends/mutations (#3061)

* fix(status): remove cut off of badge (#3055)

* fix(friend): close context menu on route changed or friend removed (#3057)

* feat(jest): 36% coverage for libraries/Files/TextileFileSystem (#3044)

* test(cypress): add fixes for cypress (#3049)

* test(cypress): more timeout for conversation load (#3067)

* feat(jest): 14% coverage for store/friends/actions (#3074)

* feat(jest): 18% coverage for store/groups/actions (#3073)

* feat(jest): 100% coverage branches for store/sounds/actions (#3083)

* fix(files): set bucket root after each file operation (#3071)

* fix(search): fix z index issue for search and call window (#3081)

* chore(soundmanager): remove unused function (#3086)

* fix(reply): display correct quick profile (#3085)

* test(cypress): add videocall tests (#3095)

* feat(files): recent sidebar functionality (#2997)

* feat(textile): configure textile via env (#3094)

* feat(textile): release the ui asap (#3070)

* fix(search): refine search match criterion (#3080)

* feat(jest): update tests according to code changes (#3104)

* fix(friends): remove friend from indexed db (#3069)

* chore(jest): skip test

* chore(jest): skip test

* chore(jest): skip test

* refactor(chat): remove unnecessary code and fix intellisense (#3072)

* feat(jest): remove skip for timeout issue on Solana (#3125)

* feat(jest): 9% coverage for store/textile/actions (#3126)

* test(cypress): new accounts and unskipping tests (#3117)

* fix(indexeddb): clear idb if user manually deleted localstorage (#3103)

* test(cypress): draft fixes for cypress on CI (#3130)

* chore(cypress): skipped due to PR - 2908

* feat(jest): 89% coverage for libraries/Files/FilSystem (#3135)

* feat(calls): call improvements & group call (#3003)

* chore(jest): add jest tests (#3148)

* feat(icons): add headphones-off-icon (#3123)

* fix(webrtc): add configurable list of stun servers wrtc config (#3163)

* fix(input): improve a11y of interactablesswitch (#3169)

* test(cypress): fixes for tests after videocall updates (#3161)

* feat(notifications): initial textile, store notification set up (#2908)

* feat(files): color contrast for liked status (#3168)

* fix(friends): remove error and searched friend on empty input (#3158)

* test(cypress): skip and fixes cypress tests (#3173)

* chore(jest): add jest tests - 2908 (#2913)

* chore(lint): lint (#3174)

* feat(friendProgram): integrate new friend program using anchor (#2469)

* refactor(z-index): created layers system (#3156)

* fix(user): prevent profile picture drag (#3133)

* feat(jest): 84% coverage for store/ui (#3190)

* fix(glyph): send glyph to active chat (#3187)

* fix(files): hide sidebar options that 100% wont be ready (#3183)

* test(cypress): add swipe tests and new accounts (#3195)

* fix(notification): remove glow from clear all button (#3177)

* fix(message): edit message recipient (#3189)

* fix(edit): edit was not getting friends textile key anymore (#3165)

* fix(footer): adds offline text if user is offline in footer (#3159)

* feat(calls): properly unbind all listeners after call closure (#3196)

* feat(calls): properly unbind all listeners after call closure

* feat(calls): all calls start from audio (for now)

Co-authored-by: Drew Ewing <[email protected]>

* Revert "feat(calls): properly unbind all listeners after call closure" (#3203)

* feat(calls): properly unbind all listeners after call closure (#3204)

* test(cypress): add save image test and updates to mobiles (#3207)

* refactor(inputs): refactor InteractablesInputGroup (#3154)

* fix(share): remove share for alpha prep (#3215)

* feat(markdown): added markdown preview in sidebar (#3127)

* fix(toolbar): disable group call button (#3216)

* fix(chat): focus on chatbar on send message click (#3157)

* fix(files): width and height for files image view (#3223)

* fix(bundle): remove v clipboard (#3214)

* chore(cypress): skip tests

* fix(hounddog): copy houndog logic to store getters (#3217)

* feat(solana): error popup shows whenever an error occurs to prevent infinite loading (#3062)

* fix(settings): correct audio input/output volume control position (#3235)

* fix(style): disable font ligatures (#3234)

* feat(friends): autofocus add friend input (#3222)

* feat(users): migrate to last version of users program (#3141)

* chore(jest): skip test

* feat(navigation): add translate transition to mobile nav (#3237)

* refactor(style): code refactor and clean up, added flair gradients (#3076)

* test(cypress): update accounts and small fixes (#3243)

* feat(jest): 100% branch coverage for store/chat/mutations (#3252)

* feat(jest): 37% coverage for store/conversation/mutations (#3251)

* feat(jest): 80% coverage for store/ui/mutations (#3250)

* fix(notification): clear alert number on open (#3221)

* fix(chat): auto scroll to the end of the chat, hide older messages in… (#3109)

* test(cypress): skips tests due to solana issues (#3254)

* fix(nametag): fixed tag color (#3247)

* fix(settings): remove mobile redirect to profile modal settings (#3238)

* fix(status): position and size of status (#3160)

* fix(settings): limit modal width/height (#3233)

* feat(media): update mute indicator style (#3220)

* test(cypress): skip tests failing due to textile (#3256)

* chore(typo): fix typo - UNINITIALIZED (#3257)

* chore(userstatus): fixed user state display while changing chat (#3170)

* refactor(friends): move sort methods into getters (#3245)

* chore(jest): organize jest imports (#3258)

* chore(lint): minor lint (#3259)

* feat(jest): 43% coverage for store/conversation/mutations (#3265)

* feat(jest): 100% coverage for store/conversation/getters (#3264)

* test(cypress): skip tests failing due to textile (#3279)

* test(cypress): skip one test on mobiles (#3280)

* chore(imports): remove not used imports (#3260)

* feat(sounds): combine deafen/undeafen into one toggle control (#3218)

* fix(chat): user navigate to chat (#3287)

* fix(friends): fix disabled add friends input bug (#3262)

* feat(jest): 100% coverage for store/conversation/mutations (#3295)

* feat(jest): 94% coverage for store/conversation/action (#3297)

* feat(account): button to delete account on login screen (#3294)

* fix(toolbar): disable call button when in call (#3299)

* fix(search): filter selected by user address (#3298)

* fix(startup): do not await promises in accounts/startup (#3162)

* fix(login): more spacing for delete account link (#3307)

* fix(spacing): reduce link spacing for signin delete account link (#3324)

* feat(jest): 100% branch coverage for store/friends/mutations (#3322)

* feat(jest): 84% coverage for store/video/actions (#3321)

* fix(modal): modal background blur (#3319)

* fix(media): user video class/styling (#3306)

* refactor(tooltip): changed and improved tooltips component (#3227)

* refactor(friends): move friend method from hounddog into getters (#3246)

* fix(solana): fix breaking change in @solana/web3.js (#3327)

* refactor(deps): removed unused dependencies and related code (#3268)

* fix(sidebar): fix toggle mute dispatch (#3236)

* feat(account): add copy phrase button to settings page (#3323)

* fix(user): general refactor, show call options if user is online (#3316)

* feat(files): rework store nsfw, scan consent, update diff instances

Co-authored-by: David Lee <[email protected]>
Co-authored-by: Luis Cardeña <[email protected]>
Co-authored-by: Thomas Bosatelli <[email protected]>
Co-authored-by: Andre Christoga Pramaditya <[email protected]>
Co-authored-by: Nick <[email protected]>
Co-authored-by: Joe McGrath <[email protected]>
Co-authored-by: Sara Tavares <[email protected]>
Co-authored-by: Sasha Zakablukov <[email protected]>
Co-authored-by: Eric Lee <[email protected]>
Co-authored-by: Phill Wisniewski <[email protected]>
Co-authored-by: molimauro <[email protected]>
Co-authored-by: vimercati-samir <[email protected]>
Co-authored-by: pavlzk <[email protected]>
Co-authored-by: Andrew Ewing <[email protected]>
Co-authored-by: Jason Woodland <[email protected]>
Co-authored-by: Jeff Kristian <[email protected]>
Co-authored-by: Jason Woodland <[email protected]>
Co-authored-by: Drew Ewing <[email protected]>
  • Loading branch information
19 people authored May 28, 2022
1 parent b52e50b commit b02a8cf
Show file tree
Hide file tree
Showing 1,141 changed files with 82,150 additions and 13,483 deletions.
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
# must be a user group key (see textile hub cli docs)
NUXT_ENV_TEXTILE_API_KEY=<You-Textile-Key-Here>

# set to true and run `yarn dev:tracker` to enable local webtorrent tracker
NUXT_ENV_DEVELOPMENT_TRACKER="ws://localhost:5001"

# in case you want to run Cypress locally
ENVIRONMENT=dev

NUXT_ENV_SOLANA_NETWORK=local
11 changes: 8 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,22 @@ module.exports = {
node: true,
},
extends: [
// '@nuxtjs/eslint-config-typescript',
'plugin:prettier/recommended',
'@nuxtjs/eslint-config-typescript',
'plugin:nuxt/recommended',
'plugin:vue/vue3-recommended',
// 'plugin:vue/vue3-recommended',
'plugin:prettier/recommended',
],
ignorePatterns: ['/cypress/*', 'package.json'],
plugins: [],
// add your custom rules here
rules: {
'vue/script-setup-uses-vars': 0,
'vue/multi-word-component-names': 0,
'import/named': 0,
'standard/no-callback-literal': 0,
'@typescript-eslint/no-unused-vars': 0,
'require-await': 0,
'no-empty-pattern': 0,
'no-else-return': [
'error',
{
Expand Down
77 changes: 32 additions & 45 deletions .github/config/changelog_config.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,34 @@
{
"categories": [
{
"title": "## 🚀 Features",
"labels": [
"feat",
"feature"
]
},
{
"title": "## 🐛 Fixes",
"labels": [
"fix",
"fixes"
]
},
{
"title": "## 💬 Other",
"labels": [
"chore",
"update",
"doc"
]
},
{
"title": "## 📦 Dependencies",
"labels": [
"dep",
"dependencies"
]
}
],
"sort": "ASC",
"label_extractor": [
{
"pattern": "^.+?(?=\\()",
"method": "match",
"on_property": "title",
"flags": "gu"
}
],
"template": "${{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n${{UNCATEGORIZED}}\n</details>",
"pr_template": "- ${{TITLE}}",
"empty_template": "- No Changes",
"max_pull_requests": 1000,
"max_back_track_time_days": 1000
"categories": [
{
"title": "## 🚀 Features",
"labels": ["feat", "feature"]
},
{
"title": "## 🐛 Fixes",
"labels": ["fix", "fixes"]
},
{
"title": "## 💬 Other",
"labels": ["chore", "update", "doc"]
},
{
"title": "## 📦 Dependencies",
"labels": ["dep", "dependencies"]
}
],
"sort": "ASC",
"label_extractor": [
{
"pattern": "^.+?(?=\\()",
"method": "match",
"on_property": "title",
"flags": "gu"
}
],
"template": "${{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n${{UNCATEGORIZED}}\n</details>",
"pr_template": "- ${{TITLE}}",
"empty_template": "- No Changes",
"max_pull_requests": 1000,
"max_back_track_time_days": 1000
}
106 changes: 53 additions & 53 deletions .github/workflows/GenerateChangelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,64 +7,64 @@ jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
with:
persist-credentials: false
submodules: true ## Installs the android, electron, and locales directory
fetch-depth: 400 ## This fetches entire history, we need this so we can get all the tags
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- name: Get Tags/Checkout bug override
run: git fetch --tags --force ## take this out later if https://github.com/actions/checkout/issues/290 is fixed
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV ## Later this is used to update the output files so they have the tag number in the name
- name: Find and Replace Version Numer in Package File ## bumps package version to match ref for the build, will commit to repo at the end when the files are created
run: |
sed -i '' -e 's/\"version\":.*/\"version\": "${{ env.RELEASE_VERSION }}",/g' package.json
- name: Get Current Release Version
run: |
echo $RELEASE_VERSION
- name: Checkout the code
uses: actions/checkout@v2
with:
persist-credentials: false
submodules: true ## Installs the android, electron, and locales directory
fetch-depth: 400 ## This fetches entire history, we need this so we can get all the tags
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- name: Get Tags/Checkout bug override
run: git fetch --tags --force ## take this out later if https://github.com/actions/checkout/issues/290 is fixed
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV ## Later this is used to update the output files so they have the tag number in the name
- name: Find and Replace Version Numer in Package File ## bumps package version to match ref for the build, will commit to repo at the end when the files are created
run: |
sed -i '' -e 's/\"version\":.*/\"version\": "${{ env.RELEASE_VERSION }}",/g' package.json
- name: Get Current Release Version
run: |
echo $RELEASE_VERSION
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: '16'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: '16'

# - name: Install dependencies
# run: yarn
# - name: Install dependencies
# run: yarn

- name: Getting Tag Names
run: |
echo "ELDERLY=$(git tag --sort version:refname | tail -n 3 | head -n 1)" >> $GITHUB_ENV
echo "START=$(git tag --sort version:refname | tail -n 2 | head -n 1)" >> $GITHUB_ENV
echo "END=$(git tag --sort version:refname | tail -n 1 | head -n 1)" >> $GITHUB_ENV
echo $(git tag)
- name: Getting Tag Names
run: |
echo "ELDERLY=$(git tag --sort version:refname | tail -n 3 | head -n 1)" >> $GITHUB_ENV
echo "START=$(git tag --sort version:refname | tail -n 2 | head -n 1)" >> $GITHUB_ENV
echo "END=$(git tag --sort version:refname | tail -n 1 | head -n 1)" >> $GITHUB_ENV
echo $(git tag)
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commitMode: true
configuration: ".github/config/changelog_config.json"
fromTag: "${{ env.ELDERLY }}"
toTag: "${{ env.END }}"
outputFile: ./changelog.txt
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commitMode: true
configuration: '.github/config/changelog_config.json'
fromTag: '${{ env.ELDERLY }}'
toTag: '${{ env.END }}'
outputFile: ./changelog.txt

- name: Combine Changelog and Checksums
run: |
sed -i '' '/Merge pull request/d' changelog.txt
sed -i '' '/Merge branch/d' changelog.txt
awk '!visited[$0]++' changelog.txt > deduplicated_changelog.txt
- name: Combine Changelog and Checksums
run: |
sed -i '' '/Merge pull request/d' changelog.txt
sed -i '' '/Merge branch/d' changelog.txt
awk '!visited[$0]++' changelog.txt > deduplicated_changelog.txt
- name: Copy file to release
uses: softprops/action-gh-release@v1
with:
body_path: ./deduplicated_changelog.txt
- name: Copy file to release
uses: softprops/action-gh-release@v1
with:
body_path: ./deduplicated_changelog.txt

commit:
needs: build
Expand All @@ -89,4 +89,4 @@ jobs:
file_pattern: ./package.json
commit_user_name: Github Actions # defaults to "GitHub Actions"
commit_user_email: [email protected] # defaults to "[email protected]"
commit_author: Github Actions <[email protected]> # defaults to author of the commit that triggered the run
commit_author: Github Actions <[email protected]> # defaults to author of the commit that triggered the run
2 changes: 1 addition & 1 deletion .github/workflows/add-conflicts-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- uses: mschilde/auto-label-merge-conflicts@master
with:
CONFLICT_LABEL_NAME: "missing fixing conflict"
CONFLICT_LABEL_NAME: 'missing fixing conflict'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAX_RETRIES: 5
WAIT_MS: 5000
17 changes: 17 additions & 0 deletions .github/workflows/add-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Add Label
on:
pull_request:
types:
- opened
jobs:
add-label:
name: Add Label
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: christianvuerings/add-labels@v1
with:
labels: |
missing dev review
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58 changes: 29 additions & 29 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: [ main ]
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
branches: [main]
schedule:
- cron: '15 16 * * 0'

Expand All @@ -32,40 +32,40 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
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
- 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
# 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
# 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
# ℹ️ 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
# ✏️ 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
#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
43 changes: 43 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Cypress
on:
pull_request:
types: [opened, synchronize, reopened, edited]

jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update submodules
run: git submodule update --init --recursive
- name: Install dependencies
run: yarn
- name: Create env file
run: |
touch .env
echo ENVIRONMENT="dev" >> .env
echo NUXT_ENV_TEXTILE_API_KEY=${{ secrets.NUXT_ENV_TEXTILE_API_KEY }} >> .env
cat .env
- name: Read .env file
id: envfile
uses: juliangruber/read-file-action@v1
with:
path: ./.env
- name: Echo .env
run: echo "${{ steps.envfile.outputs.content }}"
- name: Cypress run
uses: cypress-io/github-action@v2
with:
working-directory: ./
install: false
start: yarn dev
command: npm run cy:run
wait-on: http://localhost:3000
wait-on-timeout: 300
- name: Artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
Loading

0 comments on commit b02a8cf

Please sign in to comment.