Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
exploIF committed May 23, 2024
1 parent 7dbcdfc commit f1b0daf
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/validate-example-native.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Validate Example Native
on:
push:
branches:
- main
paths:
- '.github/workflows/validate-example-native.yaml'
- 'exampleNative/'
pull_request:
paths:
- '.github/workflows/validate-example-native.yaml'
- 'exampleNative/'
merge_group:
branches:
- main

jobs:
check:
if: github.repository == 'software-mansion-labs/swm-icon-pack-react'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: cd exampleNative && yarn
- name: Prettier check
run: yarn format:exampleNative
- name: Eslint check
run: yarn lint:exampleNative
29 changes: 29 additions & 0 deletions .github/workflows/validate-example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Validate Example
on:
push:
branches:
- main
paths:
- '.github/workflows/validate-example.yaml'
- 'example/'
pull_request:
paths:
- '.github/workflows/validate-example.yaml'
- 'example/'
merge_group:
branches:
- main

jobs:
check:
if: github.repository == 'software-mansion-labs/swm-icon-pack-react'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: cd example && yarn
- name: Prettier check
run: yarn format:example
- name: Eslint check
run: yarn lint:example
29 changes: 29 additions & 0 deletions .github/workflows/validate-react-icon-pack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Validate React Icon Pack
on:
push:
branches:
- main
paths:
- '.github/workflows/validate-react-icon-pack.yaml'
- 'react-icon-pack/'
pull_request:
paths:
- '.github/workflows/validate-react-icon-pack.yaml'
- 'react-icon-pack/'
merge_group:
branches:
- main

jobs:
check:
if: github.repository == 'software-mansion-labs/swm-icon-pack-react'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: cd react-icon-pack && yarn
- name: Prettier check
run: yarn format:web
- name: Eslint check
run: yarn lint:web
29 changes: 29 additions & 0 deletions .github/workflows/validate-react-native-icon-pack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Validate React Native Icon Pack
on:
push:
branches:
- main
paths:
- '.github/workflows/validate-react-native-icon-pack.yaml'
- 'react-native-icon-pack/'
pull_request:
paths:
- '.github/workflows/validate-react-native-icon-pack.yaml'
- 'react-native-icon-pack/'
merge_group:
branches:
- main

jobs:
check:
if: github.repository == 'software-mansion-labs/swm-icon-pack-react'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: cd react-native-icon-pack && yarn
- name: Prettier check
run: yarn format:native
- name: Eslint check
run: yarn lint:native

0 comments on commit f1b0daf

Please sign in to comment.