Skip to content

Commit

Permalink
v0.10.2 (#130)
Browse files Browse the repository at this point in the history
* fix(roles): fix an issue preventing creation of new roles
* chore(deps): update date-fns from v1 to v2
* chore(deps): update react-instantsearch from v4 to v6
* chore(deps): add dependabot settings for automatic dep update PRs
* build(deps-ci): update github action step versions
* build(deps-dev): update dev dependencies including eslint
* chore(deps): update mocha from v7 to v8 in functions
* chore(deps): update algoliasearch from v4.3.0 to v4.4.0 in functions
  • Loading branch information
prescottprue committed Aug 16, 2020
1 parent 3f34279 commit 3d64c4e
Show file tree
Hide file tree
Showing 22 changed files with 3,592 additions and 2,416 deletions.
28 changes: 28 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# For for information on config options, visit docs:
# https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
ignore:
# TODO: remove this as part of https://github.com/prescottprue/fireadmin/issues/132
- dependency-name: "react-dnd-html5-backend"
- dependency-name: "react-dropzone"
- dependency-name: "react-dnd"
- package-ecosystem: "npm"
directory: "/docs"
schedule:
interval: "weekly"
- package-ecosystem: "npm"
directory: "/functions"
schedule:
interval: "daily"
ignore:
# TODO: remove this as part of https://github.com/prescottprue/fireadmin/issues/131
- dependency-name: "googleapis"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
8 changes: 4 additions & 4 deletions .github/workflows/app-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
timeout-minutes: 20
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected].0
uses: styfle/[email protected].1
with:
access_token: ${{ github.token }}

- name: Checkout Repo
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v2.1.1
with:
node-version: 12

Expand All @@ -34,13 +34,13 @@ jobs:
echo "::set-output name=firebase-tools::$(yarn list -s --depth=0 --pattern firebase-tools | tail -n 1 | sed 's/.*@//g')"
- name: Cache App Dependencies
uses: actions/cache@v1
uses: actions/cache@v2.1.0
with:
path: ${{ steps.cache-settings.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}

- name: Cache Firebase Emulator Binaries
uses: actions/cache@v1
uses: actions/cache@v2.1.0
with:
path: ~/.cache/firebase/emulators
key: ${{ runner.os }}-firebase-${{ steps.cache-settings.outputs.firebase-tools }}
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/app-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
timeout-minutes: 15
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected].0
uses: styfle/[email protected].1
with:
access_token: ${{ github.token }}

- name: Checkout Repo
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v2.1.1
with:
node-version: 12

Expand All @@ -35,7 +35,7 @@ jobs:
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache NPM Dependencies
uses: actions/cache@v1
uses: actions/cache@v2.1.0
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
containers: [1, 2, 3, 4]
steps:
- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v2.1.1
with:
node-version: 12

Expand All @@ -153,7 +153,7 @@ jobs:
echo "::set-output name=firebase-tools::$(yarn list -s --depth=0 --pattern firebase-tools | tail -n 1 | sed 's/.*@//g')"
- name: Cache Firebase Emulator Binaries
uses: actions/cache@v1
uses: actions/cache@v2.1.0
with:
path: ~/.cache/firebase/emulators
key: ${{ runner.os }}-firebase-${{ steps.cache-settings.outputs.firebase-tools }}
Expand All @@ -173,9 +173,6 @@ jobs:
echo "::set-env name=FIRESTORE_EMULATOR_HOST::localhost:$(cat firebase.json | jq .emulators.firestore.port)"
echo "::set-env name=CYPRESS_BASE_URL::http://localhost:$(cat package.json | jq .config.port)"
# Skip recording of Cypress results if flag is set in secrets
echo "::set-env name=RECORD_CYPRESS_RESULTS::$(if [ -z "$SKIP_CYPRESS_RECORDING" ] ; then echo false; else echo true; fi;)"
echo "Generating Service Account File..."
echo "$(echo $SERVICE_ACCOUNT | jq .)" > $HOME/serviceAccount.json
echo "::set-env name=GOOGLE_APPLICATION_CREDENTIALS::$HOME/serviceAccount.json"
Expand All @@ -196,11 +193,11 @@ jobs:
# balance all found tests among themselves. The step tests a version of the app
# which is running locally in the container on port 3000
- name: Cypress Run
uses: cypress-io/github-action@v1
uses: cypress-io/github-action@v2
with:
browser: chrome
parallel: true
record: ${{ env.RECORD_CYPRESS_RESULTS }}
record: true
headless: true
group: 'UI Integration Tests'
tag: emulated
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
timeout-minutes: 15
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected].0
uses: styfle/[email protected].1
with:
access_token: ${{ github.token }}

- name: Checkout Repo
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v2.1.1
with:
node-version: 12

Expand All @@ -33,16 +33,17 @@ jobs:
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache Dependencies
uses: actions/cache@v1
uses: actions/cache@v2.1.0
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-docs-yarn-${{ hashFiles('**/yarn.lock') }}

- name: Cache Gatsby Build
uses: actions/cache@v1
with:
path: docs/.cache
key: ${{ runner.os }}-docs-build
# Removed due to causing failed builds
# - name: Cache Gatsby Build
# uses: actions/[email protected]
# with:
# path: docs/.cache
# key: ${{ runner.os }}-docs-build

- name: Install Dependencies
env:
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/docs-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
timeout-minutes: 15
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected].0
uses: styfle/[email protected].1
with:
access_token: ${{ github.token }}

- name: Checkout Repo
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v2.1.1
with:
node-version: 12

Expand All @@ -30,16 +30,17 @@ jobs:
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache Dependencies
uses: actions/cache@v1
uses: actions/cache@v2.1.0
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-docs-${{ hashFiles('**/yarn.lock') }}

- name: Cache Gatsby Build
uses: actions/cache@v1
with:
path: docs/.cache
key: ${{ runner.os }}-docs-build
# Removed due to causing failed builds
# - name: Cache Gatsby Build
# uses: actions/[email protected]
# with:
# path: docs/.cache
# key: ${{ runner.os }}-docs-build

- name: Install Dependencies
env:
Expand Down
11 changes: 6 additions & 5 deletions cypress/integration/Project/ActionRunner.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { createSelector } from '../../utils'

const testProjectId = 'test-action-runner-project'
const searchBoxSelector = '.ais-SearchBox-input'

describe('Project - Actions Page', () => {
// Setup before tests including creating a fake project
Expand Down Expand Up @@ -40,7 +41,7 @@ describe('Project - Actions Page', () => {

it('locked env is disabled as a source', () => {
// Search for an action template
cy.get('.ais-SearchBox__input').type('Copy Firestore Collection')
cy.get(searchBoxSelector).type('Copy Firestore Collection')
// Select the first action template
cy.get(createSelector('search-result')).first().click()
// Open source select field
Expand All @@ -55,7 +56,7 @@ describe('Project - Actions Page', () => {

it('locked env is disabled as destination', () => {
// Search for an action template
cy.get('.ais-SearchBox__input').type('Copy Firestore Collection')
cy.get(searchBoxSelector).type('Copy Firestore Collection')
// Select the first action template
cy.get(createSelector('search-result')).first().click()
// Open destination select field
Expand Down Expand Up @@ -83,7 +84,7 @@ describe('Project - Actions Page', () => {

it('disables run action button if "Read Only" environment is selected as a destination', () => {
// Search for an action template
cy.get('.ais-SearchBox__input').type('Copy Firestore Collection')
cy.get(searchBoxSelector).type('Copy Firestore Collection')
// Select the first action template
cy.get(createSelector('search-result')).first().click()
// Open dest select field
Expand Down Expand Up @@ -113,7 +114,7 @@ describe('Project - Actions Page', () => {

it('disables run action button if "Write Only" environment is selected as a source', () => {
// Search for an action template
cy.get('.ais-SearchBox__input').type('Copy Firestore Collection')
cy.get(searchBoxSelector).type('Copy Firestore Collection')
// Select the first action template
cy.get(createSelector('search-result')).first().click()
// Open destination select field
Expand Down Expand Up @@ -162,7 +163,7 @@ describe('Project - Actions Page', () => {

it('requests valid action run provided valid inputs', () => {
// Search for an action template
cy.get('.ais-SearchBox__input')
cy.get(searchBoxSelector)
.scrollIntoView()
.type('Copy Firestore Collection')
// Select the first action template
Expand Down
40 changes: 20 additions & 20 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
"fix-semi": "eslint --quiet --parser babel-eslint --no-eslintrc --rule '{\"semi\": [2, \"never\"], \"no-extra-semi\": [2]}' --fix gatsby-node.js"
},
"dependencies": {
"@material-ui/core": "^4.9.14",
"@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.9.1",
"lodash": "^4.17.19",
"prismjs": "^1.20.0",
"lodash": "^4.17.20",
"prismjs": "^1.21.0",
"prop-types": "^15.7.2",
"react": "^16.13.0",
"react-dom": "^16.13.0",
"react-helmet": "^5.2.0"
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-helmet": "^6.1.0"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
"cross-env": "^7.0.2",
"eslint": "^7.0.0",
"eslint": "^7.7.0",
"eslint-config-prettier": "^6.5.0",
"eslint-config-standard": "^14.0.0",
"eslint-config-standard-react": "^9.2.0",
Expand All @@ -41,26 +41,26 @@
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^3.0.0",
"eslint-plugin-standard": "^4.0.0",
"gatsby": "^2.24.11",
"gatsby": "^2.24.47",
"gatsby-plugin-google-analytics": "2.3.13",
"gatsby-plugin-lodash": "^3.0.3",
"gatsby-plugin-manifest": "^2.4.21",
"gatsby-plugin-offline": "^2.0.19",
"gatsby-plugin-lodash": "^3.3.10",
"gatsby-plugin-manifest": "^2.4.23",
"gatsby-plugin-offline": "^3.2.23",
"gatsby-plugin-react-helmet": "3.3.10",
"gatsby-plugin-root-import": "^2.0.5",
"gatsby-plugin-sharp": "2.6.22",
"gatsby-plugin-sharp": "2.6.27",
"gatsby-remark-autolink-headers": "^2.3.11",
"gatsby-remark-copy-linked-files": "2.3.11",
"gatsby-remark-images": "3.3.21",
"gatsby-remark-copy-linked-files": "2.3.12",
"gatsby-remark-images": "3.3.25",
"gatsby-remark-prismjs": "3.5.10",
"gatsby-remark-responsive-iframe": "2.4.11",
"gatsby-remark-responsive-iframe": "2.4.12",
"gatsby-remark-smartypants": "2.3.10",
"gatsby-source-filesystem": "2.3.23",
"gatsby-transformer-remark": "2.8.27",
"gatsby-transformer-sharp": "2.5.11",
"gatsby-source-filesystem": "2.3.24",
"gatsby-transformer-remark": "2.8.28",
"gatsby-transformer-sharp": "2.5.13",
"prettier": "^2.0.5",
"rimraf": "^3.0.0",
"webpack": "^4.41.2"
"rimraf": "^3.0.2",
"webpack": "^4.44.1"
},
"homepage": "https://fireadmin.io/docs",
"bugs": {
Expand Down
Loading

0 comments on commit 3d64c4e

Please sign in to comment.