-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add downloading google sheet to json files
- Loading branch information
0 parents
commit 2f53883
Showing
31 changed files
with
4,501 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
coverage | ||
dist | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
Oops, something went wrong.