Skip to content

Commit

Permalink
Migrate repo to use GitHub Actions (#992)
Browse files Browse the repository at this point in the history
## Description

We are working on consolidating all CI to GitHub Actions.

## Documentation

Does this require changes to the WorkOS Docs? E.g. the [API
Reference](https://workos.com/docs/reference) or code snippets need
updates.

```
[ ] Yes
```

If yes, link a related docs PR and add a docs maintainer as a reviewer.
Their approval is required.
  • Loading branch information
jasonroelofs authored Mar 22, 2024
1 parent 3f725e4 commit cfbb941
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
push:
branches:
- 'main'
pull_request: {}

defaults:
run:
shell: bash

jobs:
test:
name: Test Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16, 18, 20]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Install Dependencies
run: |
npm install
- name: Prettier
run: |
npm run prettier
- name: Lint
run: |
npm run lint
- name: Build
run: |
npm run build
- name: Test
run: |
npm run test

0 comments on commit cfbb941

Please sign in to comment.