Skip to content

Commit

Permalink
feat: add downloading google sheet to json files
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Jul 26, 2022
0 parents commit 2f53883
Show file tree
Hide file tree
Showing 31 changed files with 4,501 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage
dist
node_modules
13 changes: 13 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
]
}
18 changes: 18 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
push:
branches:
- main
jobs:
test:
uses: edielemoine/google-sheets-translations-importer/.github/workflows/test.yml@main
secrets: inherit

release:
runs-on: ubuntu-22.04
needs: test
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

- uses:
63 changes: 63 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: 'Run tests 🧪'

on:
workflow_call:

pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [ 14, 16, 18 ]
steps:
- name: 'Check out repository'
uses: actions/checkout@v3

- name: 'Set up Node'
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: 'Set up pnpm'
uses: pnpm/action-setup@v2.2.2
with:
version: ${{ inputs.pnpm-version }}
run_install: false

- name: 'Get pnpm store directory'
id: pnpm-cache
shell: bash
run: |
echo "::set-output name=dir::$(pnpm store path)"
- name: 'Prepare pnpm cache'
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: 'Install pnpm dependencies'
shell: bash
run: pnpm install ${{ inputs.pnpm-args }}

- name: 'Run tests without coverage'
if: matrix.node-version != '16'
run: |
pnpm run test
- name: 'Run tests with coverage'
if: matrix.node-version == '16'
run: |
pnpm run test:coverage
- name: 'Upload coverage'
if: matrix.node-version == '16'
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
Loading

0 comments on commit 2f53883

Please sign in to comment.