Skip to content

Commit

Permalink
first attempt at migrating to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbsgilbs committed Apr 8, 2022
1 parent 644821c commit 9592d27
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
name: CI

on: [push, pull_request]

env:
MAIN_NODE_VERSION: "16"

jobs:
static-checks:
runs-on: ubuntu-latest
name: Install dependencies
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ env.MAIN_NODE_VERSION }}
cache: 'yarn'
- run: yarn install
- run: yarn run types
tests:
needs: [static-checks]
runs-on: ubuntu-latest
name: Run tests
strategy:
matrix:
node: [ '12', '14', '16', '17' ]
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- run: yarn install
- run: yarn run test
build:
needs: [tests]
runs-on: ubuntu-latest
name: Run tests
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ env.MAIN_NODE_VERSION }}
- run: yarn run build
- uses: actions/upload-artifact@v3
with:
name: babel-plugin-i18next-extract
path: lib/

0 comments on commit 9592d27

Please sign in to comment.