Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #23 from polygloat/PG-32-Set_proper_language_to_tr…
Browse files Browse the repository at this point in the history
…anslation_inputs_in_core_and_webapp

Pg 32 set proper language to translation inputs in core and webapp
  • Loading branch information
JanCizmar authored Jan 11, 2021
2 parents 0805cd3 + e5d4006 commit 8190702
Show file tree
Hide file tree
Showing 13 changed files with 188 additions and 11,460 deletions.
1 change: 1 addition & 0 deletions .buildversions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CORE_VERSION=1.0.0-alpha.5
48 changes: 48 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Prerelease

on:
push:
branches:
- 'prerelease-*'

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Install proper core version
run: |
source .buildversions
npm install @polygloat/core@${CORE_VERSION}
- run: npm install

- name: Build
run: npm run build

- name: Test
run: npm run test

- name: Set git globals
run: |
git config --local user.email "[email protected]"
git config --local user.name "Polygloat Machine"
- name: Version
run: npm version prerelease

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
tags: true

- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test

on:
push:
branches-ignore:
"prerelease-*"

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Install proper core version
run: |
source .buildversions
npm install @polygloat/core@${CORE_VERSION}
- name: Npm install
run: npm install

- name: Unit test
run: npm run test

- name: Build
run: npm run build
7 changes: 0 additions & 7 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@ module.exports = {
automock: true,
preset: 'ts-jest',
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['<rootDir>/src/__testFixtures/setupAfterEnv.ts'],
"unmockedModulePathPatterns": [
"<rootDir>/node_modules/react",
"<rootDir>/node_modules/react-dom",
"<rootDir>/node_modules/lodash/*",
"<rootDir>/node_modules/lodash/*",
"<rootDir>/node_modules/core-js-pure/internals/*",
"<rootDir>/src/__testFixtures/*",
"/node_modules/*",
],
moduleNameMapper: {
Expand Down
Loading

0 comments on commit 8190702

Please sign in to comment.