New Crowdin updates #3979
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
## | |
# Run tests | |
## | |
name: Tests | |
on: | |
pull_request: | |
push: | |
jobs: | |
pre_build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: fkirc/skip-duplicate-actions@master | |
with: | |
github_token: ${{ github.token }} | |
cancel_others: true | |
test: | |
name: Run Tests | |
needs: pre_build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Setup repo | |
run: cp config.example.js config.js | |
shell: bash | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install deps | |
run: npm install | |
- run: npm run lint | |
- run: npm test | |
notify: | |
name: Notify Slack | |
needs: test | |
if: ${{ success() || failure() }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: iRoachie/[email protected] | |
if: env.SLACK_WEBHOOK_URL != null | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_BUILDS_WEBHOOK_URL }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |