Skip to content

Commit de61302

Browse files
committed
chore: upgrade to GitHub Actions v4
1 parent e14d487 commit de61302

2 files changed

Lines changed: 18 additions & 74 deletions

File tree

.github/workflows/actions.yml

Lines changed: 16 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -8,93 +8,41 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212

13-
- name: Get Yarn cache directory path
14-
id: yarn-cache-path
15-
run: echo "::set-output name=dir::$(yarn cache dir)"
16-
17-
- name: Cache node modules
18-
uses: actions/cache@v2
19-
id: yarn-cache
20-
env:
21-
cache-name: cache-node-modules
13+
- name: Set up Node
14+
uses: actions/setup-node@v4
2215
with:
23-
path: ${{ steps.yarn-cache-path.outputs.dir }}
24-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
25-
restore-keys: |
26-
${{ runner.os }}-yarn-
16+
cache: yarn
17+
node-version: 18
2718

2819
- name: Install dependencies
2920
run: |
30-
yarn install --cwd example --frozen-lockfile
31-
yarn install --frozen-lockfile
21+
yarn install --frozen-lockfile --prefer-offline
22+
yarn install --cwd example --frozen-lockfile --prefer-offline
3223
3324
- name: Run linter
34-
run: |
35-
yarn lint
25+
run: yarn run lint
3626
id: lint
3727

3828
type:
3929
name: Run Type Checker
4030
runs-on: ubuntu-latest
4131

4232
steps:
43-
- uses: actions/checkout@v2
33+
- uses: actions/checkout@v4
4434

45-
- name: Get Yarn cache directory path
46-
id: yarn-cache-path
47-
run: echo "::set-output name=dir::$(yarn cache dir)"
48-
49-
- name: Cache node modules
50-
uses: actions/cache@v2
51-
id: yarn-cache
52-
env:
53-
cache-name: cache-node-modules
35+
- name: Set up Node
36+
uses: actions/setup-node@v4
5437
with:
55-
path: ${{ steps.yarn-cache-path.outputs.dir }}
56-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
57-
restore-keys: |
58-
${{ runner.os }}-yarn-
38+
cache: yarn
39+
node-version: 18
5940

6041
- name: Install dependencies
6142
run: |
62-
yarn install --cwd example --frozen-lockfile
63-
yarn install --frozen-lockfile
43+
yarn install --frozen-lockfile --prefer-offline
44+
yarn install --cwd example --frozen-lockfile --prefer-offline
6445
6546
- name: Run type checker
66-
run: |
67-
yarn type
47+
run: yarn run type
6848
id: type
69-
70-
test:
71-
name: Run Unit Tests
72-
runs-on: ubuntu-latest
73-
74-
steps:
75-
- uses: actions/checkout@v2
76-
77-
- name: Get Yarn cache directory path
78-
id: yarn-cache-path
79-
run: echo "::set-output name=dir::$(yarn cache dir)"
80-
81-
- name: Cache node modules
82-
uses: actions/cache@v2
83-
id: yarn-cache
84-
env:
85-
cache-name: cache-node-modules
86-
with:
87-
path: ${{ steps.yarn-cache-path.outputs.dir }}
88-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
89-
restore-keys: |
90-
${{ runner.os }}-yarn-
91-
92-
- name: Install dependencies
93-
run: |
94-
yarn install --cwd example --frozen-lockfile
95-
yarn install --frozen-lockfile
96-
97-
- name: Run unit tests
98-
run: |
99-
yarn test
100-
id: test

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<p align="center">
1212
<a href="https://github.com/colorfy-software/chatify/actions">
13-
<img src="https://github.com/colorfy-software/chatify/workflows/Test%20Suite/badge.svg?branch=main" alt="Current GitHub Actions build status." />
13+
<img src="https://github.com/colorfy-software/chatify/actions/workflows/actions.yml/badge.svg?branch=main" alt="Current GitHub Actions build status." />
1414
</a>
1515
<a href="https://www.npmjs.org/package/@colorfy-software/chatify">
1616
<img src="https://badge.fury.io/js/@colorfy-software%2Fchatify.svg" alt="Current npm package version." />
@@ -30,11 +30,7 @@ Chatify is a highly customizable library built around pleasing animations that p
3030
yarn add @colorfy-software/chatify
3131
```
3232

33-
Also install and set up:
34-
35-
1. [react-native-reanimated](https://docs.swmansion.com/react-native-reanimated/)
36-
2. [react-native-gesture-handler](https://docs.swmansion.com/react-native-gesture-handler/)
37-
3. [lottie-react-native](https://github.com/lottie-react-native/lottie-react-native)
33+
Also install and set up: [react-native-reanimated](https://docs.swmansion.com/react-native-reanimated/) & [react-native-gesture-handler](https://docs.swmansion.com/react-native-gesture-handler/).
3834

3935
## 💻 Usage
4036

0 commit comments

Comments
 (0)